diff --git a/src/Illuminate/Collections/Collection.php b/src/Illuminate/Collections/Collection.php index 2d8a23045aba..2ffeefbc53aa 100644 --- a/src/Illuminate/Collections/Collection.php +++ b/src/Illuminate/Collections/Collection.php @@ -1236,7 +1236,7 @@ public function after($value, $strict = false) /** * Get and remove the first N items from the collection. * - * @param int $count + * @param int<0, max> $count * @return static|TValue|null * * @throws \InvalidArgumentException @@ -1844,7 +1844,7 @@ public function getIterator(): Traversable /** * Count the number of items in the collection. * - * @return int + * @return int<0, max> */ public function count(): int {