mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Scan configured global types
This commit is contained in:
parent
595388b7d7
commit
8c9b0eebf4
@ -238,6 +238,12 @@ class ReflectorVisitor extends PhpParser\NodeVisitorAbstract implements FileSour
|
||||
$var_id = '$' . $var->name;
|
||||
|
||||
$functionlike_node_scanner->storage->global_variables[$var_id] = true;
|
||||
|
||||
if (isset($this->codebase->config->globals[$var_id])) {
|
||||
$var_type = Type::parseString($this->codebase->config->globals[$var_id]);
|
||||
/** @psalm-suppress UnusedMethodCall */
|
||||
$var_type->queueClassLikesForScanning($this->codebase, $this->file_storage);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user