1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

qa: use ClassLikes#getUnAliasedName instead of accessing the classlike_aliases

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
This commit is contained in:
Maximilian Bösing 2021-08-17 21:43:58 +02:00
parent 5ef606a5f6
commit 158f2144b5
No known key found for this signature in database
GPG Key ID: 9A8988C93CEC81A3

View File

@ -680,11 +680,9 @@ class ClassLikes
}
foreach ($class_storage->class_implements as $implementing_interface_lc => $_) {
if (!isset($this->classlike_aliases[$implementing_interface_lc])) {
continue;
}
$aliased_interface_lc = strtolower($this->classlike_aliases[$implementing_interface_lc]);
$aliased_interface_lc = strtolower(
$this->getUnAliasedName($implementing_interface_lc)
);
if ($aliased_interface_lc === $interface_id) {
return true;