mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fix cs
This commit is contained in:
parent
d580181171
commit
1a9edc3179
@ -283,9 +283,13 @@ class ArrayFunctionArgumentsAnalyzer
|
||||
|
||||
if ($was_list) {
|
||||
if ($arg_value_atomic_type instanceof TNonEmptyArray) {
|
||||
$arg_value_atomic_type = Type::getNonEmptyListAtomic($arg_value_atomic_type->type_params[1]);
|
||||
$arg_value_atomic_type = Type::getNonEmptyListAtomic(
|
||||
$arg_value_atomic_type->type_params[1]
|
||||
);
|
||||
} else {
|
||||
$arg_value_atomic_type = Type::getListAtomic($arg_value_atomic_type->type_params[1]);
|
||||
$arg_value_atomic_type = Type::getListAtomic(
|
||||
$arg_value_atomic_type->type_params[1]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,6 @@ use Psalm\Type\Atomic\TLiteralInt;
|
||||
use Psalm\Type\Atomic\TLiteralString;
|
||||
use Psalm\Type\Atomic\TNonEmptyArray;
|
||||
use Psalm\Type\Union;
|
||||
use UnexpectedValueException;
|
||||
|
||||
use function addslashes;
|
||||
use function count;
|
||||
|
Loading…
Reference in New Issue
Block a user