diff --git a/src/FakeCarHelper.php b/src/FakeCarHelper.php index ba8d8b0..d959d14 100644 --- a/src/FakeCarHelper.php +++ b/src/FakeCarHelper.php @@ -78,7 +78,7 @@ public static function getRandomElementsFromArray(array $values, ?int $count = 1 return []; } - if (! $count) { + if ($count === null) { $count = $valuesLength === 1 ? 1 : random_int(1, $valuesLength); } @@ -100,6 +100,7 @@ public static function getRandomElementsFromArray(array $values, ?int $count = 1 */ public static function getWeighted(array $values, int $count = 1): string|int { + // TODO: Implement support for $count > 1 $currentTotal = 0; $firstRand = random_int(1, 100);