Skip to content

Commit

Permalink
fix: add missing implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Nov 13, 2023
1 parent 9f29100 commit 1026d49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,11 @@ public function pluck(mixed $pluck, mixed $default = null): CollectionInterface
return new self((new Operation\Pluck())()($pluck)($default), [$this]);
}

public function plus(iterable $iterable): CollectionInterface

Check failure on line 618 in src/Collection.php

View workflow job for this annotation

GitHub Actions / Static Analysis (ubuntu-latest, 8.1)

ParamNameMismatch

src/Collection.php:618:35: ParamNameMismatch: Argument 1 of loophp\collection\Collection::plus has wrong name $iterable, expecting $items as defined by loophp\collection\Contract\Operation\Plusable::plus (see https://psalm.dev/230)
{
return new self((new Operation\Plus())()($iterable), [$this]);
}

public function prepend(mixed ...$items): CollectionInterface
{
return new self((new Operation\Prepend())()($items), [$this]);
Expand Down

0 comments on commit 1026d49

Please sign in to comment.