🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

ob_get_clean() can return false #14985

Description

@TheSoundOfTNT

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions