Skip to content

Errors related to SplObjectStorage in 2.1.34 #13985

@mspirkov

Description

@mspirkov

Bug report

After updating from 2.1.33 to 2.1.34, PHPStan started to incorrectly detect the type of the value during iteration.

Code snippet that reproduces the problem

https://phpstan.org/r/bb21e577-5851-4650-8d20-0953db1ef5b1

Expected output

PHPStan should correctly recognize the type of $value

Did PHPStan help you today? Did it make you happy in any way?

Helps me every day!

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