Skip to content

Wrong assumption in for condition - Comparison operation ">" between int<17, 100> and 0 is always true. #5707

@mvorisek

Description

@mvorisek

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/9611d207-0007-4d39-b84f-20daf3a5f577

Expected output

no error

maybe related with #5656 , but this is much simpler demo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions