Skip to content
Permalink
Browse files

Add fully-qualified params to scanned classes

  • Loading branch information...
muglug committed May 3, 2019
1 parent 49acdfc commit 8c9d8e72490a6629d3941d3315968efbdd1875c2
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/Psalm/Internal/Visitor/ReflectorVisitor.php
@@ -2140,7 +2140,9 @@ public function getTranslatedFunctionParam(
$param_type_string = $param_typehint->name;
} elseif ($param_typehint instanceof PhpParser\Node\Name\FullyQualified) {
$param_type_string = (string)$param_typehint;
$this->codebase->scanner->queueClassLikeForScanning($param_type_string, $this->file_path);
$this->file_storage->referenced_classlikes[strtolower($param_type_string)] = $param_type_string;
} else {
if ($this->classlike_storages
&& strtolower($param_typehint->parts[0]) === 'self'

0 comments on commit 8c9d8e7

Please sign in to comment.
You can’t perform that action at this time.