Skip to content

Commit 75e560e

Browse files
authored
Update PHP version requirements and test annotations for PHP 8.2 compability (#136)
* Update PHP version requirements and test annotations for PHP 8.2 compatibility * small changes
1 parent 022d2e3 commit 75e560e

24 files changed

Lines changed: 3463 additions & 2333 deletions

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
operating-system: ['ubuntu-latest']
15-
php-versions: ['7.4', '8.0', '8.1']
15+
php-versions: ['8.2', '8.3', '8.4']
1616
phpunit-versions: ['latest']
1717
steps:
1818
- name: Checkout

composer.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
}
1515
},
1616
"require": {
17-
"php": "^7.4 | ^8.0",
18-
"consolidation/robo": "3.0.*",
19-
"symfony/finder": ">=2.7 <6.0",
17+
"php": "^8.2",
18+
"consolidation/robo": "5.1.*",
19+
"symfony/finder": ">=6.1 <8.0",
2020
"ext-dom": "*",
2121
"ext-libxml": "*",
2222
"ext-json": "*"
@@ -28,20 +28,21 @@
2828
},
2929
"require-dev": {
3030
"roave/security-advisories": "dev-latest",
31-
"codeception/codeception": "4.1.*",
31+
"codeception/codeception": "^5.3",
3232
"squizlabs/php_codesniffer": "^3.6.0",
33-
"overtrue/phplint": "^3.0.0",
33+
"overtrue/phplint": ">=9.5",
3434
"friendsofphp/php-cs-fixer": "^3.0.0",
35-
"phpunit/phpunit": ">=9.0",
35+
"phpunit/phpunit": ">=11",
36+
"rector/rector": "^2.1",
3637
"codeception/phpunit-wrapper": "^9.0.6"
3738
},
3839
"config": {
3940
"platform": {
40-
"php": "7.4.0"
41+
"php": "8.2.0"
4142
}
4243
},
4344
"scripts": {
44-
"unit": "vendor/bin/phpunit --bootstrap tests/bootstrap.php tests/ --exclude-group example --stderr -v --debug",
45+
"unit": "vendor/bin/phpunit --bootstrap tests/bootstrap.php tests/ --exclude-group example --stderr --debug",
4546
"lint": "vendor/bin/phplint -v ./ --exclude=vendor",
4647
"codestyle": "vendor/bin/phpcs --standard=PSR12 ./src",
4748
"test": [

0 commit comments

Comments
 (0)