diff --git a/src/A.php b/src/A.php index 2b38a1c..0cc884c 100644 --- a/src/A.php +++ b/src/A.php @@ -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 [];