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:
parent
5c1b7bb0bc
commit
84fecaa2a5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user