Skip to content

Commit cd86694

Browse files
authored
Correct parameter type of Collection::intersectByKeys() (#53444)
1 parent 9c86dd9 commit cd86694

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Illuminate/Collections/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ public function intersectAssocUsing($items, callable $callback)
676676
/**
677677
* Intersect the collection with the given items by key.
678678
*
679-
* @param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items
679+
* @param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items
680680
* @return static
681681
*/
682682
public function intersectByKeys($items)

src/Illuminate/Collections/Enumerable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ public function intersectAssocUsing($items, callable $callback);
598598
/**
599599
* Intersect the collection with the given items by key.
600600
*
601-
* @param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items
601+
* @param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items
602602
* @return static
603603
*/
604604
public function intersectByKeys($items);

src/Illuminate/Collections/LazyCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ public function intersectAssocUsing($items, callable $callback)
680680
/**
681681
* Intersect the collection with the given items by key.
682682
*
683-
* @param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items
683+
* @param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items
684684
* @return static
685685
*/
686686
public function intersectByKeys($items)

0 commit comments

Comments
 (0)