Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/bc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ on:
- push

name: backwards compatibility

jobs:
roave_bc_check:
name: Roave BC Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: fetch tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Roave BC Check
uses: docker://nyholm/roave-bc-check-ga
uses: yiisoft/actions/.github/workflows/bc.yml@master
with:
os: >-
['ubuntu-latest']
php: >-
['8.0']
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

## 1.0.1 under development

- no changes in this release.
- Chg #137: In `FilterableDataInterface::withFilterHandlers()` rename parameter `$iterableFilterHandlers` to
`$filterHandlers` (@vjik)

## 1.0.0 January 14, 2023

- Initial release.
- Initial release.
4 changes: 2 additions & 2 deletions src/Reader/FilterableDataInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ public function withFilter(FilterInterface $filter): static;
/**
* Returns new instance with additional handlers set.
*
* @param FilterHandlerInterface ...$iterableFilterHandlers Additional iterable handlers.
* @param FilterHandlerInterface ...$filterHandlers Additional filter handlers.
*
* @return static New instance.
* @psalm-return $this
*/
public function withFilterHandlers(FilterHandlerInterface ...$iterableFilterHandlers): static;
public function withFilterHandlers(FilterHandlerInterface ...$filterHandlers): static;
}
4 changes: 2 additions & 2 deletions src/Reader/Iterable/IterableDataReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ public function __construct(private iterable $data)
/**
* @psalm-return $this
*/
public function withFilterHandlers(FilterHandlerInterface ...$iterableFilterHandlers): static
public function withFilterHandlers(FilterHandlerInterface ...$filterHandlers): static
{
$new = clone $this;
$new->iterableFilterHandlers = array_merge(
$this->iterableFilterHandlers,
$this->prepareFilterHandlers($iterableFilterHandlers)
$this->prepareFilterHandlers($filterHandlers)
);
return $new;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Paginator/KeysetPaginatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ public function withFilter(FilterInterface $filter): static
return clone $this;
}

public function withFilterHandlers(FilterHandlerInterface ...$iterableFilterUnits): static
public function withFilterHandlers(FilterHandlerInterface ...$filterHandlers): static
{
return clone $this;
}
Expand Down