Skip to content

Detect loop overwrite already defined variable #4414

@eigan

Description

@eigan

Feature request

PHPStan should detect when a loop overwrites a variable already defined. This is almost always a bug.

https://phpstan.org/r/a5cbd146-3af7-4009-a0e9-9f4c4812cfaf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions