Skip to content

Commit a8bbf05

Browse files
committed
Add type assertion in isList
1 parent 51b0967 commit a8bbf05

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/Arr.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ final private function __construct()
2828
* starting from 0 and increasing by 1 for each element).
2929
*
3030
* @param array<mixed> $array
31+
*
32+
* @phpstan-assert-if-true list<mixed> $array
33+
* @phpstan-assert-if-false list<mixed> $array
34+
* @psalm-assert-if-true array<string,mixed> $array
35+
* @psalm-assert-if-false array<string,mixed> $array
3136
*/
3237
public static function isList(array $array): bool
3338
{

0 commit comments

Comments
 (0)