Skip to content

Commit 3dabc25

Browse files
committed
AC-1895: Avoid having duplicated issues in magento-coding-standard
1 parent 7fbdf31 commit 3dabc25

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Magento2/ruleset.xml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
<exclude-pattern>*\.phtml$</exclude-pattern>
1717
<exclude-pattern>*\.xml$</exclude-pattern>
1818
</rule>
19-
<rule ref="Generic.PHP.DeprecatedFunctions">
20-
<severity>10</severity>
21-
<type>error</type>
22-
<exclude-pattern>*\.xml$</exclude-pattern>
23-
</rule>
2419
<rule ref="Generic.PHP.NoSilencedErrors">
2520
<severity>10</severity>
2621
<type>error</type>
@@ -762,9 +757,12 @@
762757
</rule>
763758
<rule ref="PHPCompatibility">
764759
<exclude name="PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound" />
765-
<!-- Following sniffs has been updated or renamed in PHPCompatibility 10 -->
766-
<exclude name="PHPCompatibility.Constants.NewMagicClassConstant" />
767-
<exclude name="PHPCompatibility.Classes.ForbiddenAbstractPrivateMethods" />
760+
<!-- Following sniffs have been updated or renamed in PHPCompatibility 10 -->
761+
<exclude name="PHPCompatibility.Constants.NewMagicClassConstant.Found" />
762+
<exclude name="PHPCompatibility.Classes.ForbiddenAbstractPrivateMethods.Found" />
763+
<!-- Following sniffs have an equivalent in PHPCS -->
764+
<exclude name="PHPCompatibility.Syntax.ForbiddenCallTimePassByReference.Deprecated" />
765+
<exclude name="PHPCompatibility.Syntax.ForbiddenCallTimePassByReference.NotAllowed" />
768766
<!-- Check for cross-version support for stated PHP version and higher. -->
769767
<config name="testVersion" value="7.4-"/>
770768
</rule>

0 commit comments

Comments
 (0)