@@ -113,7 +113,7 @@ public function all()
113
113
/**
114
114
* Eager load all items into a new lazy collection backed by an array.
115
115
*
116
- * @return static
116
+ * @return static<TKey, TValue>
117
117
*/
118
118
public function eager ()
119
119
{
@@ -123,7 +123,7 @@ public function eager()
123
123
/**
124
124
* Cache values as they're enumerated.
125
125
*
126
- * @return static
126
+ * @return static<TKey, TValue>
127
127
*/
128
128
public function remember ()
129
129
{
@@ -334,7 +334,7 @@ public function countBy($countBy = null)
334
334
* Get the items that are not present in the given items.
335
335
*
336
336
* @param \Illuminate\Contracts\Support\Arrayable<array-key, TValue>|iterable<array-key, TValue> $items
337
- * @return static
337
+ * @return static<TKey, TValue>
338
338
*/
339
339
public function diff ($ items )
340
340
{
@@ -1091,7 +1091,7 @@ public function replaceRecursive($items)
1091
1091
/**
1092
1092
* Reverse items order.
1093
1093
*
1094
- * @return static
1094
+ * @return static<TKey, TValue>
1095
1095
*/
1096
1096
public function reverse ()
1097
1097
{
@@ -1186,7 +1186,7 @@ public function after($value, $strict = false)
1186
1186
/**
1187
1187
* Shuffle the items in the collection.
1188
1188
*
1189
- * @return static
1189
+ * @return static<TKey, TValue>
1190
1190
*/
1191
1191
public function shuffle ()
1192
1192
{
@@ -1549,7 +1549,7 @@ public function sortKeysUsing(callable $callback)
1549
1549
* Take the first or last {$limit} items.
1550
1550
*
1551
1551
* @param int $limit
1552
- * @return static
1552
+ * @return static<TKey, TValue>
1553
1553
*/
1554
1554
public function take ($ limit )
1555
1555
{
@@ -1592,7 +1592,7 @@ public function take($limit)
1592
1592
* Take items in the collection until the given condition is met.
1593
1593
*
1594
1594
* @param TValue|callable(TValue,TKey): bool $value
1595
- * @return static
1595
+ * @return static<TKey, TValue>
1596
1596
*/
1597
1597
public function takeUntil ($ value )
1598
1598
{
@@ -1614,7 +1614,7 @@ public function takeUntil($value)
1614
1614
* Take items in the collection until a given point in time.
1615
1615
*
1616
1616
* @param \DateTimeInterface $timeout
1617
- * @return static
1617
+ * @return static<TKey, TValue>
1618
1618
*/
1619
1619
public function takeUntilTimeout (DateTimeInterface $ timeout )
1620
1620
{
@@ -1639,7 +1639,7 @@ public function takeUntilTimeout(DateTimeInterface $timeout)
1639
1639
* Take items in the collection while the given condition is met.
1640
1640
*
1641
1641
* @param TValue|callable(TValue,TKey): bool $value
1642
- * @return static
1642
+ * @return static<TKey, TValue>
1643
1643
*/
1644
1644
public function takeWhile ($ value )
1645
1645
{
@@ -1653,7 +1653,7 @@ public function takeWhile($value)
1653
1653
* Pass each item in the collection to the given callback, lazily.
1654
1654
*
1655
1655
* @param callable(TValue, TKey): mixed $callback
1656
- * @return static
1656
+ * @return static<TKey, TValue>
1657
1657
*/
1658
1658
public function tapEach (callable $ callback )
1659
1659
{
@@ -1713,7 +1713,7 @@ public function undot()
1713
1713
*
1714
1714
* @param (callable(TValue, TKey): mixed)|string|null $key
1715
1715
* @param bool $strict
1716
- * @return static
1716
+ * @return static<TKey, TValue>
1717
1717
*/
1718
1718
public function unique ($ key = null , $ strict = false )
1719
1719
{
0 commit comments