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
@@ @@
PHP 8.0 – 8.1 (1 error)
==========
-10: Variable $a in empty() always exists and is not falsy.+10: Variable $a in empty() always exists and is always falsy.
PHP 7.1 – 7.4 (2 errors)
==========
9: Function array_push invoked with 1 parameter, at least 2 required.
-10: Variable $a in empty() always exists and is not falsy.+10: Variable $a in empty() always exists and is always falsy.
Full report
PHP 8.0 – 8.1 (1 error)
Line
Error
10
Variable $a in empty() always exists and is always falsy.
PHP 7.1 – 7.4 (2 errors)
Line
Error
9
Function array_push invoked with 1 parameter, at least 2 required.
10
Variable $a in empty() always exists and is always falsy.
Bug report
phpstan could not understand count of array after using
array_push
Code snippet that reproduces the problem
https://phpstan.org/r/d5e3c533-05e0-4cae-8f2d-157de6f05717
Expected output
no error
The text was updated successfully, but these errors were encountered: