1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Add fully-qualified params to scanned classes

This commit is contained in:
Brown 2019-05-03 11:55:27 -04:00
parent 49acdfc764
commit 8c9d8e7249

View File

@ -2140,7 +2140,9 @@ class ReflectorVisitor extends PhpParser\NodeVisitorAbstract implements PhpParse
$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'