Skip to content

Anonymous class inside another anonymous class constructor argument fails #5597

@sakarikl

Description

@sakarikl

Bug report

Anonymous classes inside another anonymous class fails.

Code snippet that reproduces the problem

https://phpstan.org/r/67265928-bc80-4ed6-bed4-75f1554b2ce1

Expected output

No errors

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

Yes :) it helps make every day better than previous day.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions