mirror of
https://github.com/danog/psalm.git
synced 2024-12-12 09:19:40 +01:00
bugfix: resolve recursive aliases
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
This commit is contained in:
parent
d4559f5ba3
commit
4e0484f283
@ -852,7 +852,12 @@ class ClassLikes
|
||||
return $alias_name;
|
||||
}
|
||||
|
||||
return $this->classlike_aliases[$alias_name_lc] ?? $alias_name;
|
||||
$result = $this->classlike_aliases[$alias_name_lc] ?? $alias_name;
|
||||
if ($result === $alias_name) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
return $this->getUnAliasedName($result);
|
||||
}
|
||||
|
||||
public function consolidateAnalyzedData(Methods $methods, ?Progress $progress, bool $find_unused_code): void
|
||||
|
Loading…
Reference in New Issue
Block a user