false
is not recognized as the result of exec()
in PHP 7.*
#10431
Labels
Milestone
false
is not recognized as the result of exec()
in PHP 7.*
#10431
Bug report
For PHP 7.2-7.4 phpstan returns an error when comparing the result of
exec()
tofalse
. It works fine for PHP 8.*. I don't see anything in php docs saying that the return type is different for PHP 7 and 8https://www.php.net/manual/en/function.exec.php
Code snippet that reproduces the problem
https://phpstan.org/r/3fe47f5e-f27b-4b4e-9594-5e7e0e6e8313
Expected output
No error
Did PHPStan help you today? Did it make you happy in any way?
Yup!
The text was updated successfully, but these errors were encountered: