Skip to content

Commit 31f3c5e

Browse files
committed
Enforce PHP 8.0 (and up) compatibility through PHPCS
1 parent 640ed30 commit 31f3c5e

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
},
2222
"config": {
2323
"allow-plugins": {
24-
"phpstan/extension-installer": true
24+
"phpstan/extension-installer": true,
25+
"dealerdirect/phpcodesniffer-composer-installer": true
2526
},
2627
"platform": {
2728
"php": "8.0"
@@ -36,7 +37,9 @@
3637
"phpstan/extension-installer": "^1.4",
3738
"league/flysystem": "^2.5",
3839
"symfony/console": "^5.4",
39-
"symfony/finder": "^5.4"
40+
"symfony/finder": "^5.4",
41+
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
42+
"phpcompatibility/php-compatibility": "dev-develop"
4043
},
4144
"scripts": {
4245
"test": [

phpcs.xml.dist

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
<ruleset name="mozart">
44
<description>Coding standard ruleset based on the PSR-2 coding standard.</description>
55
<rule ref="PSR2"/>
6+
7+
<rule ref="PHPCompatibility"/>
8+
<config name="testVersion" value="8.0-"/>
9+
610
<file>./src</file>
7-
</ruleset>
11+
</ruleset>

0 commit comments

Comments
 (0)