-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Labels
Milestone
Description
Bug report
The \ob_get_level() reports the current depth of the output buffer and it therefore classifies as an impure function.
Code snippet that reproduces the problem
https://phpstan.org/r/9afc0573-09e4-405f-bd32-1c44d6d0752e
Expected output
Currently it appears to be recognized as pure which is an issue for the code snippet in the reproducer. The snippet may look strange because I have omitted some parts from the condition because we will only flush the output buffer in that place if there are errors.
Did PHPStan help you today? Did it make you happy in any way?
No response
Reactions are currently unavailable