mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Fix nullref
This commit is contained in:
parent
024bbef5cd
commit
17c9f5c746
@ -3746,7 +3746,7 @@ class AssertionFinder
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($literal_assertions) {
|
if ($literal_assertions && $first_var_name) {
|
||||||
$if_types[$first_var_name] = [$literal_assertions];
|
$if_types[$first_var_name] = [$literal_assertions];
|
||||||
} else {
|
} else {
|
||||||
$array_root = isset($expr->args[1]->value)
|
$array_root = isset($expr->args[1]->value)
|
||||||
|
Loading…
Reference in New Issue
Block a user