1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Fix nullref

This commit is contained in:
Matthew Brown 2016-09-13 18:10:41 -04:00
parent c1ca6c27d5
commit 70d01c8138

View File

@ -2295,7 +2295,7 @@ class StatementsChecker
$array_type = $array_type->types['array']->type_params[1];
}
else {
elseif (!$return_type->isMixed()) {
$array_type->types['array']->type_params[1] = $return_type->types['array']->type_params[1];
}
}