Skip to content

Falsy Type after for condition #5328

@staabm

Description

@staabm

Feature request

Analog to the fix in https://github.com/phpstan/phpstan-src/blob/3166ba31a8768979a40e55f1bbfea9ba4449a3d8/tests/PHPStan/Analyser/data/bug-5322.php

i would expect this to apply to for-loops
https://phpstan.org/r/896b762d-0edd-4775-8057-ad47fcbfd5ec

(The example is a bit theoretical though)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions