Skip to content

Commit

Permalink
fix: remove optional parameter before non-optional in A::pickRandoms()
Browse files Browse the repository at this point in the history
  • Loading branch information
meszaros-lajos-gyorgy committed Apr 21, 2023
1 parent 9c0de62 commit 37b7cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/A.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public static function pickRandom(array $data)
}

// A::pickRandoms(2, [1, 2, 3, 4, 5]) -> [5, 2]
public static function pickRandoms(int $amount = 1, array $data): array
public static function pickRandoms(int $amount, array $data): array
{
if (self::isEmpty($data) || $amount <= 0) {
return [];
Expand Down

0 comments on commit 37b7cfa

Please sign in to comment.