Skip to content

when 'Else branch is unreachable because previous condition is always true' is not true #4887

@yphoenix

Description

@yphoenix

Bug report

PHPStan - PHP Static Analysis Tool 0.12.84

PHPStan says that the else is unreachable, I say it is.

Code snippet that reproduces the problem

https://phpstan.org/r/adffe5b9-8174-41b6-a774-b988dbfd0165

Expected output

No warnings

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions