Skip to content

Commit beed6d7

Browse files
committed
Disabled unused private elements detection
This inspection can't currently detect callbacks like `[$this, 'foo']`, where `foo` is a `private` method of `$this` (slevomat/coding-standard#413).
1 parent 2ef6a58 commit beed6d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

phpcs.xml.dist

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<file>./test/unit</file>
1818

1919
<rule ref="Doctrine">
20+
<exclude name="SlevomatCodingStandard.Classes.UnusedPrivateElements"/>
2021
<exclude-pattern>src/DetectChanges/BCBreak/InterfaceBased/InterfaceBased.php</exclude-pattern>
2122
<exclude-pattern>test/unit/Formatter/ReflectionFunctionAbstractNameTest.php</exclude-pattern>
2223
<exclude-pattern>test/unit/DetectChanges/BCBreak/FunctionBased/ParameterByReferenceChangedTest.php</exclude-pattern>

0 commit comments

Comments
 (0)