Bug report
Strict comparison using === between string and false will always evaluate to false.
There is no check whether ob_start() was successful, so the if condition cannot be guaranteed to be always false, as PHPStan claims.
Code snippet that reproduces the problem
https://phpstan.org/r/d8ad7f75-48ec-4256-9a5b-ce36b448294a
Expected output
If there is check that ob_start() was successful, PHPStan will not report "Strict comparison using === between string and false will always evaluate to false."
Did PHPStan help you today? Did it make you happy in any way?
No response
Bug report
Strict comparison using === between string and false will always evaluate to false.
There is no check whether ob_start() was successful, so the if condition cannot be guaranteed to be always false, as PHPStan claims.
Code snippet that reproduces the problem
https://phpstan.org/r/d8ad7f75-48ec-4256-9a5b-ce36b448294a
Expected output
If there is check that ob_start() was successful, PHPStan will not report "Strict comparison using === between string and false will always evaluate to false."
Did PHPStan help you today? Did it make you happy in any way?
No response