Skip to content

Commit e86fa47

Browse files
authored
fix: incorrect phpstan-type for Mutations TDataSet parameter (#271)
1 parent 9b0590b commit e86fa47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Concerns/ManagesMutations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
use InvalidArgumentException;
3030

3131
/**
32-
* @phpstan-type TDataSet list<array<string, array<array-key, mixed>>>|array<string, array<array-key, mixed>>
32+
* @phpstan-type TDataSet list<array<string, mixed>>|array<string, mixed>
3333
*/
3434
trait ManagesMutations
3535
{
@@ -129,7 +129,7 @@ protected function prepareForMutation(array $dataSet): array
129129
return [];
130130
}
131131

132-
if (Arr::isAssoc($dataSet)) {
132+
if (!array_is_list($dataSet)) {
133133
$dataSet = [$dataSet];
134134
}
135135

0 commit comments

Comments
 (0)