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:
parent
ee6a9b98fb
commit
d94abc42e8
@ -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)
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user