mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Remove unnecessary foreach
This commit is contained in:
parent
3e7e1b3020
commit
19ccdbc08b
@ -460,12 +460,6 @@ class IfChecker
|
||||
}
|
||||
|
||||
if ($if_scope->possibly_redefined_vars) {
|
||||
foreach ($if_scope->possibly_redefined_vars as $var_id => $type) {
|
||||
if ($context->hasVariable($var_id)) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($if_scope->possibly_redefined_vars as $var_id => $type) {
|
||||
if ($context->hasVariable($var_id)
|
||||
&& !$type->failed_reconciliation
|
||||
|
Loading…
Reference in New Issue
Block a user