Skip to content

[DeadCode] Empty array checker before foreach #3060

@TomasVotruba

Description

@TomasVotruba

If values is always array, the check before foreach is useless

image

cc @afilina Just saw it in my code... Is that what you had in mind?
https://twitter.com/afilina/status/1242173453429608448

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