mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
Merge pull request #10856 from simonberger/patch-10739
This commit is contained in:
commit
fb7278ea3e
@ -1685,7 +1685,9 @@ final class TypeParser
|
||||
$normalized_intersection_types = [];
|
||||
$modified = false;
|
||||
foreach ($intersection_types as $intersection_type) {
|
||||
if (!$intersection_type instanceof TTypeAlias) {
|
||||
if (!$intersection_type instanceof TTypeAlias
|
||||
|| !$codebase->classlike_storage_provider->has($intersection_type->declaring_fq_classlike_name)
|
||||
) {
|
||||
$normalized_intersection_types[] = [$intersection_type];
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user