Skip to content

Commit e063e5d

Browse files
authored
Revert "Add methods to Enumerable contract (#46021)" (#46047)
This reverts commit 3b8057c.
1 parent 2248188 commit e063e5d

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

src/Illuminate/Collections/Enumerable.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -563,32 +563,6 @@ public function implode($value, $glue = null);
563563
*/
564564
public function intersect($items);
565565

566-
/**
567-
* Intersect the collection with the given items, using the callback.
568-
*
569-
* @param \Illuminate\Contracts\Support\Arrayable<array-key, TValue>|iterable<array-key, TValue> $items
570-
* @param callable(TValue, TValue): int $callback
571-
* @return static
572-
*/
573-
public function intersectUsing($items, callable $callback);
574-
575-
/**
576-
* Intersect the collection with the given items with additional index check.
577-
*
578-
* @param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items
579-
* @return static
580-
*/
581-
public function intersectAssoc($items);
582-
583-
/**
584-
* Intersect the collection with the given items with additional index check, using the callback.
585-
*
586-
* @param \Illuminate\Contracts\Support\Arrayable<array-key, TValue>|iterable<array-key, TValue> $items
587-
* @param callable(TValue, TValue): int $callback
588-
* @return static
589-
*/
590-
public function intersectAssocUsing($items, callable $callback);
591-
592566
/**
593567
* Intersect the collection with the given items by key.
594568
*

src/Illuminate/Collections/LazyCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ public function intersect($items)
639639
* @param callable(TValue, TValue): int $callback
640640
* @return static
641641
*/
642-
public function intersectUsing($items, callable $callback)
642+
public function intersectUsing()
643643
{
644644
return $this->passthru('intersectUsing', func_get_args());
645645
}

0 commit comments

Comments
 (0)