You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 29c49f2
Browse filesBrowse the repository at this point in the historyBrowse files
Apply the falsey isset() narrowing of the left side to the ?? right scope
The right side of `$a ?? $b` only evaluates when the left side is null
or unset, but its scope was built from the null pin alone - the falsey
isset() narrowing composed from the left read (offset removals,
certainty reductions) only reached the value scope of `??=`. Apply it
to the plain coalesce too, except when the left side is surely set and
surely non-null: there the right side cannot evaluate at all, and the
counterfactual certainty reductions would survive the scope merge after
the coalesce.
An always-initialized nullable property read on the left now pins to
null on the right side, so `$a->noDefault ?? $b->noDefault` composes
with earlier not-both-null narrowing - the updated
isset-property-default-value expectation matches the defaulted-property
case above it.
Closesphpstan/phpstan#6379
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CGhnJQpUWRRpg6H5LuWJkA
0 commit comments