Commit Graph
1 Commits
Author SHA1 Message Date
Hugo Mayonobe 20497cb988 Keep imported phpstan/psalm types unqualified (#1797)
A type brought in with @phpstan-import-type is a local alias, not a class
in the model's namespace, but it was resolved as one:

    @property-read \App\Models\ArrayShape $some_array

Collect the aliases declared with @phpstan-type/@psalm-type or imported
with @phpstan-import-type/@psalm-import-type on the model and its parents,
and return them as written.

Fixes #1773
2026-08-20 16:16:03 +02:00