1
0
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:
Bruce Weirdan 2024-03-25 01:35:28 +01:00 committed by GitHub
commit fb7278ea3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1685,7 +1685,9 @@ final class TypeParser
$normalized_intersection_types = []; $normalized_intersection_types = [];
$modified = false; $modified = false;
foreach ($intersection_types as $intersection_type) { 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]; $normalized_intersection_types[] = [$intersection_type];
continue; continue;
} }