Skip to content

Always evaluated scope is not detected if condition is stronger #9685

Description

@mvorisek

Bug report

in the repro, there are two methods with the same code, in the 2nd method, an extra condition is added making the condition later stronger - but phpstan does handle it as weaker

Code snippet that reproduces the problem

https://phpstan.org/r/0715a034-ace4-4d2b-8099-05c6d34613ea

Expected output

no phpstan error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions