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
Fix #6120: Nullsafe result !== null narrows the caller to non-null
- When assigning from a nullsafe expression (e.g. $result = $clazz?->foo),
checking $result !== null now correctly narrows $clazz to non-null
- Added non-null/null conditional expressions in processAssignVar alongside
the existing truthy/falsey ones, so !== null checks trigger narrowing
- Updated bug-13546 test: array_key_first assignment narrowing now correctly
narrows to non-empty-list/array{} when checking result !== null
- Removed baseline entry for ClassReflection::getCacheKey() which is now
correctly resolved by the improved narrowing
0 commit comments