diff --git a/src/Psalm/Internal/Codebase/Scanner.php b/src/Psalm/Internal/Codebase/Scanner.php index b4a4fe2ea..18a4ece26 100644 --- a/src/Psalm/Internal/Codebase/Scanner.php +++ b/src/Psalm/Internal/Codebase/Scanner.php @@ -764,7 +764,7 @@ class Scanner $new_fq_class_name_lc = strtolower($new_fq_class_name); if ($new_fq_class_name_lc !== $fq_class_name_lc) { - $classlikes->addClassAlias($new_fq_class_name_lc, $fq_class_name_lc); + $classlikes->addClassAlias($new_fq_class_name, $fq_class_name_lc); $fq_class_name_lc = $new_fq_class_name_lc; }