Skip to content

Commit 3a405f0

Browse files
committed
feat!: add pathCallback filter to all finders
1 parent 84f8533 commit 3a405f0

33 files changed

+981
-493
lines changed

.github/workflows/cscheck.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: shivammathur/setup-php@v2
2020
with:
2121
coverage: none
22-
php-version: "8.0"
22+
php-version: "8.1"
2323
tools: cs2pr
2424

2525
- name: Install Composer dependencies

.github/workflows/phpstan.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: shivammathur/setup-php@v2
1818
with:
1919
coverage: none
20-
php-version: "8.1"
20+
php-version: "8.3"
2121
tools: cs2pr
2222

2323
- name: Install Composer dependencies

.github/workflows/test.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ jobs:
1818
- windows-latest
1919

2020
php_version:
21-
- '8.0'
2221
- '8.1'
22+
- '8.2'
23+
- '8.3'
2324

2425
composer_flags:
2526
- ''
@@ -41,14 +42,14 @@ jobs:
4142
custom-cache-suffix: $(date -u "+%Y-%m")
4243

4344
- run: vendor/bin/phpunit
44-
if: ${{ matrix.php_version != '8.0' }}
45+
if: ${{ matrix.php_version != '8.2' }}
4546
- run: vendor/bin/phpunit --coverage-clover coverage.xml
46-
if: ${{ matrix.php_version == '8.0' }}
47+
if: ${{ matrix.php_version == '8.2' }}
4748
env:
4849
XDEBUG_MODE: coverage
4950

5051
- name: Upload coverage to Codecov
51-
if: ${{ matrix.php_version == '8.0' }}
52+
if: ${{ matrix.php_version == '8.2' }}
5253
uses: codecov/codecov-action@v3
5354
with:
5455
file: ./coverage.xml

README.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,7 @@ You can filter classes using the methods exposed by `FinderInterface`:
4949
- `in(array $dirs)`: Searches only in given directories.
5050
- `inNamespace(array $namespaces)`: Searches only in given namespaces.
5151
- `filter(callable $callback)`: Custom filtering callback.
52-
53-
#### Specific finder filters
54-
55-
##### RecursiveFinder
56-
57-
- `fileFilter(callable $callback)`: Custom filtering callback for loading files.
52+
- `pathFilter(callable $callback)`: Custom filtering callback for loading files.
5853

5954

6055
## License

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"minimum-stability": "stable",
1818
"require": {
19-
"php": "^8.0",
19+
"php": "^8.1",
2020
"thecodingmachine/safe": "^1.0 || ^2.0"
2121
},
2222
"require-dev": {
@@ -25,7 +25,7 @@
2525
"phpunit/phpunit": "^9.5",
2626
"roave/security-advisories": "dev-master",
2727
"solido/php-coding-standards": "dev-master",
28-
"symfony/error-handler": "^5.0 || ^6.0"
28+
"symfony/error-handler": "^5.0 || ^6.0 || ^7.0"
2929
},
3030
"autoload": {
3131
"psr-4": {

0 commit comments

Comments
 (0)