Skip to content

empty array, though it could not be empty #1972

@mitelg

Description

@mitelg

Summary of a problem or a feature request

Since we updated to 0.11.3 today we got an error about an empty array passed to a foreach

Code snippet that reproduces the problem

https://phpstan.org/r/2d7f403b-7351-4874-9bda-bc824bbf0a24
Also see real world example: EntityWriter

The issue seems to be related to #1826 and #1882 Though I don't know if they are the exact same problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions