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
Wrong "dead catch" error, side effects of ArrayAccess not considered #11427
The implementation of ArrayAccess can throw exceptions, causing statements like unset($x[1]); actually throw.
Of the examples in the sample link, only $x[1] = ... correctly assumes an exception might be thrown (i.e. offsetSet), while offsetGet/offsetExists/offsetUnset are not considered.
Activity
phpstan-bot commentedon Mar 6, 2026
Closed via merging phpstan/phpstan-src#5117
github-actions commentedon Apr 7, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.