-
-
Notifications
You must be signed in to change notification settings - Fork 946
Closed
phpstan/phpstan-src
#5145Labels
Milestone
Description
Bug report
See attached reduced testcase.
Note that:
- the error does not occur when
list<array<?string>>is replaced withlist<array<string>>on line 3; - the error does not occur when
$x[0] ?? nullis accessed before$x[0]['bar'] ?? nullon line 5.
Code snippet that reproduces the problem
https://phpstan.org/r/b22adb57-2821-465c-b3ad-625b98c8d6a1
Expected output
No error on line 6.
Did PHPStan help you today? Did it make you happy in any way?
No response
Reactions are currently unavailable