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

Add reference to ensure proper hydration

This commit is contained in:
Brown 2020-05-15 00:31:55 -04:00
parent 0086eb25a2
commit 013467dc0e

View File

@ -1288,6 +1288,10 @@ class ReflectorVisitor extends PhpParser\NodeVisitorAbstract implements PhpParse
$this->aliases
);
$this->codebase->scanner->queueClassLikeForScanning($declaring_fq_classlike_name);
$this->file_storage->referenced_classlikes[strtolower($declaring_fq_classlike_name)]
= $declaring_fq_classlike_name;
$this->type_aliases[$as_alias_name] = new TypeAlias\LinkableTypeAlias(
$declaring_fq_classlike_name,
$type_alias_name