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

Fix array location

This commit is contained in:
Matthew Brown 2018-03-02 08:38:16 -05:00
parent ee6a9b98fb
commit d94abc42e8

View File

@ -166,7 +166,7 @@ class FunctionCallChecker extends \Psalm\Checker\Statements\Expression\CallCheck
// this is fine
$has_valid_function_call_type = true;
} elseif ($var_type_part instanceof TString
|| $var_type_part instanceof TArray
|| $var_type_part instanceof Type\Atomic\TArray
|| ($var_type_part instanceof Type\Atomic\ObjectLike
&& count($var_type_part->properties) === 2)
) {