mirror of
https://github.com/danog/psalm.git
synced 2024-11-29 20:28:59 +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];
|
||||
} else {
|
||||
$array_root = isset($expr->args[1]->value)
|
||||
|
Loading…
Reference in New Issue
Block a user