Skip to content

Commit

Permalink
Add type assertion in isList
Browse files Browse the repository at this point in the history
  • Loading branch information
tfirdaus committed Oct 8, 2024
1 parent 51b0967 commit a8bbf05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ final private function __construct()
* starting from 0 and increasing by 1 for each element).
*
* @param array<mixed> $array
*
* @phpstan-assert-if-true list<mixed> $array
* @phpstan-assert-if-false list<mixed> $array
* @psalm-assert-if-true array<string,mixed> $array
* @psalm-assert-if-false array<string,mixed> $array
*/
public static function isList(array $array): bool
{
Expand Down

0 comments on commit a8bbf05

Please sign in to comment.