8000 Rectify to trigger latest build (#6914) · rectorphp/rector-src@b29132b · GitHub
[go: up one dir, main page]

Skip to content

Commit b29132b

Browse files
authored
Rectify to trigger latest build (#6914)
1 parent a3ffe76 commit b29132b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

rules/DeadCode/Rector/ClassMethod/RemoveUnusedPrivateMethodParameterRector.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
namespace Rector\DeadCode\Rector\ClassMethod;
66

7-
use PHPStan\Type\ObjectType;
87
use PhpParser\Node;
98
use PhpParser\Node\Expr\MethodCall;
109
use PhpParser\Node\Expr\StaticCall;
1110
use PhpParser\Node\Param;
1211
use PhpParser\Node\Stmt\Class_;
1312
use PhpParser\Node\Stmt\ClassMethod;
1413
use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode;
14+
use PHPStan\Type\ObjectType;
1515
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
1616
use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTagRemover;
1717
use Rector\Comments\NodeDocBlock\DocBlockUpdater;
@@ -169,7 +169,10 @@ private function cleanupArgs(MethodCall|StaticCall $call, array $keysArg): void
169169
*/
170170
private function resolveCallers(ClassMethod $classMethod, string $methodName, ObjectType $classObjectType): array
171171
{
172-
return $this->betterNodeFinder->find($classMethod, function (Node $subNode) use ($methodName, $classObjectType): bool {
172+
return $this->betterNodeFinder->find($classMethod, function (Node $subNode) use (
173+
$methodName,
174+
$classObjectType
175+
): bool {
173176
if (! $subNode instanceof MethodCall && ! $subNode instanceof StaticCall) {
174177
return false;
175178
}

0 commit comments

Comments
 (0)
0