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

Fix closure bug

This commit is contained in:
Matthew Brown 2016-06-17 16:16:54 -04:00
parent 5c1b7bb0bc
commit 84fecaa2a5

View File

@ -952,7 +952,7 @@ class StatementsChecker
}
foreach ($stmt->uses as $use) {
$use_vars[$use->var] = isset($vars_in_scope[$use->var]) ? $vars_in_scope[$use->var] : 'mixed';
$use_vars[$use->var] = isset($vars_in_scope[$use->var]) ? $vars_in_scope[$use->var] : Type::getMixed();
$use_vars_possibly_in_scope[$use->var] = true;
}