Skip to content

Using phpstan-import-type between classes makes alias unresolvable #11463

@eigan

Description

@eigan

Bug report

If you have two classes which depends on eachother with phpstan-import-type, then the type imported will be unresolveable.

Code snippet that reproduces the problem

https://phpstan.org/r/30361727-a436-4c1a-ac19-19a2f6ebfb21

Expected output

No errors. PHPStan should be able to resolve the type.

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

PHPStan helps us every 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