1
0
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:
Maximilian Bösing 2021-08-18 16:18:58 +02:00
parent d4559f5ba3
commit 4e0484f283
No known key found for this signature in database
GPG Key ID: 9A8988C93CEC81A3

View File

@ -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