Skip to content

Commit 1b2153f

Browse files
committed
AC-1059: Move PHPCompatibility rules from Magento tests
1 parent 0e141b0 commit 1b2153f

File tree

3 files changed

+78
-9
lines changed

3 files changed

+78
-9
lines changed

Magento2/ruleset.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,3 +738,9 @@
738738
<severity>0</severity>
739739
</rule>
740740
</ruleset>
741+
<ruleset name="PHPCompatibilityMagento">
742+
<description>Magento 2 specific ruleset which checks for PHP cross version compatibility.</description>
743+
<rule ref="PHPCompatibility">
744+
<exclude name="PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound" />
745+
</rule>
746+
</ruleset>

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"squizlabs/php_codesniffer": "^3.6",
1313
"webonyx/graphql-php": "^14.9",
1414
"ext-simplexml": "*",
15-
"ext-dom": "*"
15+
"ext-dom": "*",
16+
"phpcompatibility/php-compatibility": "^9.3"
1617
},
1718
"require-dev": {
1819
"phpunit/phpunit": "^9.5.8"

composer.lock

Lines changed: 70 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)