Skip to content

Commit 70ed4bc

Browse files
authored
Fix parameter type for Assert::isMap() (#331)
1 parent 78746a6 commit 70ed4bc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Assert.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,7 @@ public static function isNonEmptyList(mixed $array, string $message = ''): array
20252025
*
20262026
* @psalm-assert array<string, T> $array
20272027
*
2028-
* @param array<string, T> $array
2028+
* @param mixed|array<array-key, T> $array
20292029
*
20302030
* @return array<string, T>
20312031
*

src/Mixin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4896,7 +4896,7 @@ public static function allNullOrIsNonEmptyList(mixed $array, string $message = '
48964896
* @template T
48974897
* @psalm-assert array<string, T>|null $array
48984898
*
4899-
* @param array<string, T>|null $array
4899+
* @param mixed|array<array-key, T>|null $array
49004900
*
49014901
* @return array<string, T>|null
49024902
*
@@ -4915,7 +4915,7 @@ public static function nullOrIsMap(mixed $array, string $message = ''): mixed
49154915
* @template T
49164916
* @psalm-assert iterable<array<string, T>> $array
49174917
*
4918-
* @param iterable<array<string, T>> $array
4918+
* @param iterable<mixed|array<array-key, T>> $array
49194919
*
49204920
* @return iterable<array<string, T>>
49214921
*
@@ -4938,7 +4938,7 @@ public static function allIsMap(mixed $array, string $message = ''): mixed
49384938
* @template T
49394939
* @psalm-assert iterable<array<string, T>|null> $array
49404940
*
4941-
* @param iterable<array<string, T>|null> $array
4941+
* @param iterable<mixed|array<array-key, T>|null> $array
49424942
*
49434943
* @return iterable<array<string, T>|null>
49444944
*

0 commit comments

Comments
 (0)