1
0
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:
Matthew Brown 2016-04-30 17:31:49 -04:00
parent f24eea342c
commit dfa7078937

View File

@ -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;
}