From d0d0c019cdee1ae57d5bc435f8bcf0a41c93ac2c Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Fri, 14 Feb 2020 22:39:07 -0500 Subject: [PATCH] Fix aliasing --- src/Psalm/Internal/Codebase/Scanner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }