Skip to content

FP: Strict comparison using === between int<2, max> and 1 will always evaluate to false. #2648

@voku

Description

@voku

Bug report

version: 0.12

if the array is changed in a loop, we can't use simple comparison checks

Code snippet that reproduces the problem

https://phpstan.org/r/29b7bf69-f82f-4ec0-b72b-8499de885544

Expected output

no error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions