-
-
Notifications
You must be signed in to change notification settings - Fork 934
Closed
phpstan/phpstan-src
#4425Labels
Milestone
Description
Bug report
See code snippet. Maybe PHPStan got confused when unioning complex substractable types?
The expected dumped type on line 9 should not exclude non-empty arrays.
Code snippet that reproduces the problem
https://phpstan.org/r/2488a5b9-e936-461c-b4dd-64d91ea36f7a
Expected output
No “function.impossibleType” error on line 10
Did PHPStan help you today? Did it make you happy in any way?
No response