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 (2 errors)+==========++14: If condition is always false.+14: Only booleans are allowed in an if condition, null given.++PHP 7.1 – 7.4 (1 error)+==========+
14: If condition is always false.
Full report
PHP 8.0 (2 errors)
Line
Error
14
If condition is always false.
14
If condition is always false.
PHP 7.1 – 7.4 (1 error)
Line
Error
14
Only booleans are allowed in an if condition, null given.
Bug report
Code snippet that reproduces the problem
https://phpstan.org/r/73c7b029-ffbf-4b15-b6fe-19a5f6ee43d5
Note that removing the last argument to is_array() will give the expected output.
Expected output
Should be no error.
The text was updated successfully, but these errors were encountered: