Repository navigation
fix(coalesce): ($a ?? null) !== null asserts isset($a), ?? of a set non-null variable is the variable - #14517
Conversation
…on-null variable is the variable vimeo#14251 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Behaviour change
Verified: |
✅ Performance: unchanged · Types: decreased
How to read this table
✅ symfony: issues +0 −2Memory 3 619 → 3 619 MB (<0.1 %) · Wall 186.7 → 187.9 s (+0.7 %) Weighted 100 455 → 100 450 (−5, <0.01 %): L2 −1 · L3 −1
Removed (2)
✅ amphp-amp: issues +2 −0Memory 48 → 48 MB (+0.0 %) · Wall 1.6 → 1.6 s (−3.1 %) Weighted 49 → 53 (+4, +8.16 %): L2 +2
Added (2)
head ecdaa53 · base eda66f2 (merge-base) · workflow run |
…null-narrowing # Conflicts: # tests/TypeReconciliation/IssetTest.php
|
Thanks! This is ready to merge, but it now conflicts with master in |
…null-narrowing # Conflicts: # tests/TypeReconciliation/IssetTest.php
|
Thanks @jirkace! |
($a['k'] ?? null) !== nulldoes not narrow$a['k'], so repeating the same??expression in the branch is still possibly null.Before
After
Fixes #14251