We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ab7264 commit 525983bCopy full SHA for 525983b
src/Rules/DeadCode/UnusedPrivateMethodRule.php
@@ -60,7 +60,7 @@ public function processNode(Node $node, Scope $scope): array
60
continue;
61
}
62
63
- $methodReflection = $classType->getMethod($methodName, $scope);
+ $methodReflection = $classReflection->getNativeMethod($methodName);
64
foreach ($this->extensionProvider->getExtensions() as $extension) {
65
if ($extension->isAlwaysUsed($methodReflection)) {
66
continue 2;
0 commit comments