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 6c18d79
Browse filesBrowse the repository at this point in the historyBrowse files
Keep optional keys of unsealed shapes in falsey isset() narrowing
Removing HasOffsetType('k') from an unsealed shape like
array{k?: string, ...} drops the explicit key, which re-admits it through
the unsealed extras with their (wider) value type - the "narrowed" type
array{...} is in fact wider. Merged back with the truthy branch it
collapsed the subject to plain array, e.g. after `$a['k'] ?? ''`.
Skip the optional-key removal when any union member is not sealed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments