diff --git a/src/Psalm/Visitor/DependencyFinderVisitor.php b/src/Psalm/Visitor/DependencyFinderVisitor.php index f236de4b9..6e76a8531 100644 --- a/src/Psalm/Visitor/DependencyFinderVisitor.php +++ b/src/Psalm/Visitor/DependencyFinderVisitor.php @@ -154,10 +154,12 @@ class DependencyFinderVisitor extends PhpParser\NodeVisitorAbstract implements P $fq_classlike_name = ClassChecker::getAnonymousClassName($node, $this->file_path); } else { $fq_classlike_name = ($this->aliases->namespace ? $this->aliases->namespace . '\\' : '') . $node->name; - $fq_classlike_name_lc = strtolower($fq_classlike_name); - $this->file_storage->classlikes_in_file[$fq_classlike_name_lc] = $fq_classlike_name; } + $fq_classlike_name_lc = strtolower($fq_classlike_name); + + $this->file_storage->classlikes_in_file[$fq_classlike_name_lc] = $fq_classlike_name; + $this->fq_classlike_names[] = $fq_classlike_name; $storage = $this->codebase->createClassLikeStorage($fq_classlike_name); diff --git a/src/matt.php b/src/matt.php new file mode 100644 index 000000000..fed05eba8 --- /dev/null +++ b/src/matt.php @@ -0,0 +1,15 @@ +