diff --git a/src/Rector/Class_/ImplementsFactoryInterfaceToPsrFactoryRector.php b/src/Rector/Class_/ImplementsFactoryInterfaceToPsrFactoryRector.php index d8092f5..49542f5 100644 --- a/src/Rector/Class_/ImplementsFactoryInterfaceToPsrFactoryRector.php +++ b/src/Rector/Class_/ImplementsFactoryInterfaceToPsrFactoryRector.php @@ -15,6 +15,7 @@ use PhpParser\Node\Stmt\UseUse; use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Parameter\SimpleParameterProvider; +use Rector\Core\PhpParser\Node\BetterNodeFinder; use Rector\Core\PhpParser\Node\CustomNode\FileWithoutNamespace; use Rector\Naming\Naming\UseImportsResolver; use Rector\NodeTypeResolver\Node\AttributeKey; @@ -26,7 +27,8 @@ final class ImplementsFactoryInterfaceToPsrFactoryRector extends AbstractRector private const FACTORY_INTERFACE = FactoryInterface::class; public function __construct( - private UseImportsResolver $useImportsResolver + private UseImportsResolver $useImportsResolver, + private BetterNodeFinder $betterNodeFinder ) { }