Skip to content

False positive - variable might not be define when while(true) and try-catch is involved #5477

@ondrejmirtes

Description

@ondrejmirtes

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/ba8395d7-8d34-4500-99c6-5753d94246db

Expected output

No errors (except for the dead catch)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions