You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using phpstan-import-type between classes makes alias unresolvable #11463
I am also experiencing this issue. With Psalm this works as expected, but for some reason not with PHPStan. As a workaround, the @phpstan-type declarations can all be moved to the same class, but that isn't very clean with large projects.
Activity
theodorejb commentedon Nov 17, 2024
I am also experiencing this issue. With Psalm this works as expected, but for some reason not with PHPStan. As a workaround, the
@phpstan-typedeclarations can all be moved to the same class, but that isn't very clean with large projects.Fix circular @phpstan-import-type between classes making aliases unre…
Fix circular @phpstan-import-type between classes making aliases unre…
Fix circular @phpstan-import-type between classes making aliases unre…
phpstan-bot commentedon Feb 19, 2026
@eigan After the latest push in 2.2.x, PHPStan now reports different result with your code snippet:
Updated PHPStan to commit 8717c5d9be76f6a4a8c5bd70a9e10f7bd664602a
staabm commentedon Feb 19, 2026
Fixed in phpstan/phpstan-src#4997
Updated PHPStan to commit 8882d85f6fc849110f498b380f1849bb772647b5
github-actions commentedon Mar 23, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.