Skip to content

Commit 7059a4b

Browse files
committed
AC-1059: Move PHPCompatibility rules from Magento tests
1 parent c01fed6 commit 7059a4b

File tree

6 files changed

+6
-794
lines changed

6 files changed

+6
-794
lines changed

Magento2/ruleset.xml

+1-11
Original file line numberDiff line numberDiff line change
@@ -737,17 +737,7 @@
737737
<rule ref="Internal.NoCodeFound">
738738
<severity>0</severity>
739739
</rule>
740-
<rule ref="../vendor/phpcompatibility/php-compatibility/PHPCompatibility">
740+
<rule ref="PHPCompatibility">
741741
<exclude name="PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound" />
742-
<exclude name="PHPCompatibility.FunctionUse.RequiredToOptionalFunctionParameters" />
743-
<exclude name="PHPCompatibility.ParameterValues.RemovedPCREModifiers" />
744-
<exclude name="PHPCompatibility.InitialValue.NewConstantScalarExpressions" />
745742
</rule>
746-
<!--
747-
These sniffs are copied from latest development version of PHPCompatibility, and are included here due to bug
748-
in version 9.3 of PHPCompatibility. Once version 10 is released, this hack must me removed.
749-
750-
See https://github.com/PHPCompatibility/PHPCompatibility/issues/793 form more information
751-
-->
752-
<rule ref="../PHPCompatibilityMagento/Sniffs/FunctionUse" />
753743
</ruleset>

PHPCompatibilityMagento/Sniffs/FunctionUse/OptionalToRequiredFunctionParametersSniff.php

-270
This file was deleted.

0 commit comments

Comments
 (0)