From 0c2a77b91ee409040086ec1bbc8e2fcdacf78e1f Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 17 Oct 2023 19:05:49 +0700 Subject: [PATCH] Fix deprecated dynamic pull BetterNodeFinder from AbstractRector Signed-off-by: Abdul Malik Ikhsan --- .../Class_/ImplementsFactoryInterfaceToPsrFactoryRector.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ) { }