Skip to content

Incorrect XMLReader logic implementation: a reader can be reopened, and ->read() doesn't return false after it #5920

@fluffycondor

Description

@fluffycondor

Bug report

phpstan 1.0.1

PHPStan thinks (\XMLReader) $reader->read() becomes forever false after calling $reader->close(), but it's not true.

Code snippet that reproduces the problem

https://phpstan.org/r/a2f98248-04b5-448e-901e-f89a37dc4d1f

Did PHPStan help you today? Did it make you happy in any way?

Thanks for the new shiny major PHPStan update! ❤️
I've fixed a bunch of errors in my project thanks to this update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions