Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizen-ci committed Mar 18, 2021
1 parent 6e68ff6 commit 524126d
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/NodeManipulator/ClassMethodManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use PHPStan\Reflection\ClassReflection;
use PHPStan\Type\ObjectType;
use Rector\Core\Exception\ShouldNotHappenException;
use Rector\Core\PhpParser\Comparing\NodeComparator;
use Rector\Core\PhpParser\Node\BetterNodeFinder;
use Rector\Core\ValueObject\MethodName;
use Rector\NodeNameResolver\NodeNameResolver;
Expand All @@ -28,11 +27,6 @@ final class ClassMethodManipulator
*/
private $betterNodeFinder;

/**
* @var NodeComparator
*/
private $nodeComparator;

/**
* @var NodeTypeResolver
*/
Expand All @@ -43,23 +37,14 @@ final class ClassMethodManipulator
*/
private $nodeNameResolver;

/**
* @var FuncCallManipulator
*/
private $funcCallManipulator;

public function __construct(
BetterNodeFinder $betterNodeFinder,
FuncCallManipulator $funcCallManipulator,
NodeNameResolver $nodeNameResolver,
NodeTypeResolver $nodeTypeResolver,
NodeComparator $nodeComparator
NodeTypeResolver $nodeTypeResolver
) {
$this->betterNodeFinder = $betterNodeFinder;
$this->nodeTypeResolver = $nodeTypeResolver;
$this->nodeNameResolver = $nodeNameResolver;
$this->funcCallManipulator = $funcCallManipulator;
$this->nodeComparator = $nodeComparator;
}

public function isNamedConstructor(ClassMethod $classMethod): bool
Expand Down

0 comments on commit 524126d

Please sign in to comment.