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
PHPStan seems to assume that an array passed by reference to a callable cannot be changed inside the callable. In the following code snippet, PHPStan claims that the array is empty ("Empty array passed to foreach" on line 14) although it could have been changed by the callable.
Bug report
PHPStan seems to assume that an array passed by reference to a callable cannot be changed inside the callable. In the following code snippet, PHPStan claims that the array is empty ("Empty array passed to foreach" on line 14) although it could have been changed by the callable.
Code snippet that reproduces the problem
https://phpstan.org/r/8912aef0-2aba-4301-b268-647406e82999
Expected output
No errors.
Did PHPStan help you today? Did it make you happy in any way?
PHPStan helped me find unreachable code last Friday. :)
The text was updated successfully, but these errors were encountered: