mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
handle the case where the expansion was not successful
This commit is contained in:
parent
60732d00ba
commit
6905daedd7
@ -485,7 +485,9 @@ class UnionTypeComparator
|
||||
true
|
||||
);
|
||||
if ($expanded instanceof Atomic) {
|
||||
$atomic_types[] = $expanded;
|
||||
if (!$expanded instanceof TTypeAlias && !$expanded instanceof TClassConstant) {
|
||||
$atomic_types[] = $expanded;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user