Skip to content

Commit

Permalink
Fix deprecated dynamic pull BetterNodeFinder from AbstractRector
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
  • Loading branch information
samsonasik committed Oct 17, 2023
1 parent c6c37ca commit 0c2a77b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
) {
}

Expand Down

0 comments on commit 0c2a77b

Please sign in to comment.