Skip to content

Commit

Permalink
fix all matching() to return ReadableCollection&Selectable
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Oct 8, 2023
1 parent 30f51b6 commit ed10520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/RejectTrait/SelectableRejectDecoratorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ abstract protected function getWrapped(): Selectable;
/**
* @return ReadableCollection<TKey,T>&Selectable<TKey,T>
*/
public function matching(Criteria $criteria): ReadableCollection
public function matching(Criteria $criteria): ReadableCollection&Selectable
{
throw new \BadMethodCallException(sprintf('Method %s is disabled', __METHOD__));
}
Expand Down
2 changes: 1 addition & 1 deletion src/Trait/SelectableDecoratorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ abstract protected function getWrapped(): Selectable;
/**
* @return ReadableCollection<TKey,T>&Selectable<TKey,T>
*/
public function matching(Criteria $criteria): ReadableCollection
public function matching(Criteria $criteria): ReadableCollection&Selectable
{
return $this->getWrapped()->matching($criteria);
}
Expand Down

0 comments on commit ed10520

Please sign in to comment.