Skip to content

Commit

Permalink
Merge branch 'v11' into dropin-collection-enhancemnet
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming authored Dec 24, 2024
2 parents 51678a6 + 62cb15e commit 3bceffb
Show file tree
Hide file tree
Showing 5 changed files with 870 additions and 709 deletions.
2 changes: 1 addition & 1 deletion src/Discord/Helpers/CollectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function filter(callable $callback): static;
public function find(callable $callback);
public function clear(): void;
public function map(callable $callback): static;
public function merge(Collection $collection): static;
public function merge($collection): static;
public function toArray();
public function offsetExists($offset): bool;
#[\ReturnTypeWillChange]
Expand Down
4 changes: 2 additions & 2 deletions src/Discord/Helpers/CollectionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,11 @@ public function map(callable $callback): static
/**
* Merges another collection into this collection.
*
* @param Collection $collection
* @param $collection
*
* @return self
*/
public function merge(Collection $collection): self
public function merge($collection): self
{
$this->items = array_merge($this->items, $collection->toArray());

Expand Down
Loading

0 comments on commit 3bceffb

Please sign in to comment.