Skip to content

Commit 525983b

Browse files
committed
One more fix
1 parent 4ab7264 commit 525983b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/DeadCode/UnusedPrivateMethodRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function processNode(Node $node, Scope $scope): array
6060
continue;
6161
}
6262

63-
$methodReflection = $classType->getMethod($methodName, $scope);
63+
$methodReflection = $classReflection->getNativeMethod($methodName);
6464
foreach ($this->extensionProvider->getExtensions() as $extension) {
6565
if ($extension->isAlwaysUsed($methodReflection)) {
6666
continue 2;

0 commit comments

Comments
 (0)