Skip to content

Commit

Permalink
[FEATURE] add php compatibility checks for PHP 7.4 and above
Browse files Browse the repository at this point in the history
Note:

php-compatibility does currently not find all violations.
For further information see: PHPCompatibility/PHPCompatibility#809
  • Loading branch information
sebastianstein committed Oct 28, 2022
1 parent 00962f4 commit c3bb11f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
>
<description>Test Classes and Tests. Config optimized for local CLO and CI/CD.</description>

<rule ref="PHPCompatibility"/>
<rule ref="PSR12"/>

<file>Classes</file>

<config name="testVersion" value="7.4-"/>

<arg name="extensions" value="php" />
<arg name="basepath" value="."/>
<arg name="colors"/>
Expand Down
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@
"typo3/cms-lowlevel": "^11.5",
"typo3/testing-framework": "^6.12",
"phpmd/phpmd": "^2",
"phpcompatibility/php-compatibility": "*"
"phpcompatibility/php-compatibility": "dev-develop",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2"
},
"prefer-stable" : true,
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"In2code\\In2studyfinder\\": "Classes"
Expand All @@ -64,7 +66,8 @@
"bin-dir": ".build/bin",
"allow-plugins": {
"typo3/class-alias-loader": true,
"typo3/cms-composer-installers": true
"typo3/cms-composer-installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
Expand Down

0 comments on commit c3bb11f

Please sign in to comment.