Skip to content

Commit 3b84e21

Browse files
authored
Merge pull request #5 from AngryBytes/feat/php81
Support PHP 8.1, upgrade dependencies
2 parents f4a5460 + c8eca6c commit 3b84e21

File tree

4 files changed

+27
-9
lines changed

4 files changed

+27
-9
lines changed

.github/workflows/php-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
php-versions: ['7.3', '7.4', '8.0']
8+
php-versions: ['7.4', '8.0', '8.1']
99
name: PHP ${{ matrix.php-versions }} tests
1010
steps:
1111
- name: Checkout

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 2.0.0
4+
5+
### PHP support
6+
7+
- Dropped support for PHP `7.3`.
8+
- Added support for PHP `8.1`.
9+
10+
### 3rd party updates
11+
12+
- Updated `symfony/finder` to version `5`.
13+
314
## 1.2.0
415

516
### PHP support

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,25 @@
2828
},
2929
"scripts": {
3030
"phpcheck": [
31-
"./vendor/bin/phpstan analyse -l max --memory-limit=1G src/",
32-
"./vendor/bin/phpcs -p --standard=PSR2 --extensions=php src/"
31+
"./vendor/bin/phpstan analyse -c phpstan.neon -l max --memory-limit=1G src/ tests/",
32+
"./vendor/bin/phpcs -p --standard=PSR2 --extensions=php src/ tests/"
3333
],
3434
"phpcbf": [
35-
"./vendor/bin/phpcbf -p --standard=PSR2 --extensions=php src/"
35+
"./vendor/bin/phpcbf -p --standard=PSR2 --extensions=php src/ tests/"
3636
],
3737
"phpunit": [
3838
"./vendor/bin/phpunit"
3939
]
4040
},
4141
"minimum-stability": "stable",
4242
"require": {
43+
"php": "7.4.* || 8.0.* || 8.1.*",
4344
"ext-json": "*",
44-
"php": "7.3.* || 7.4.* || 8.0.*",
45-
"symfony/finder": "~4.4"
45+
"symfony/finder": "^5.0.0"
4646
},
4747
"require-dev": {
48-
"phpstan/phpstan": "0.12.34",
49-
"phpunit/phpunit": "~8.5",
50-
"squizlabs/php_codesniffer": "^3.5"
48+
"phpstan/phpstan": "1.2.0",
49+
"phpunit/phpunit": "9.5.10",
50+
"squizlabs/php_codesniffer": "3.6.2"
5151
}
5252
}

phpstan.neon

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Unreachable statement \\- code above always terminates\\.$#"
5+
count: 1
6+
path: tests/Naneau/ProjectVersioner/Test/Reader/FinderTest.php
7+

0 commit comments

Comments
 (0)