mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Register all variables even if not checking
This commit is contained in:
parent
f24eea342c
commit
dfa7078937
@ -778,6 +778,13 @@ class StatementsChecker
|
||||
}
|
||||
|
||||
if (!$this->_check_variables) {
|
||||
$stmt->returnType = 'mixed';
|
||||
|
||||
if (is_string($stmt->name)) {
|
||||
$vars_in_scope[$stmt->name] = 'mixed';
|
||||
$vars_possibly_in_scope[$stmt->name] = true;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user