Skip to content

Commit

Permalink
Merge pull request #152 from samsonasik/fix-missing-betternode-finder
Browse files Browse the repository at this point in the history
Fix deprecated dynamic pull BetterNodeFinder from AbstractRector
  • Loading branch information
samsonasik authored Oct 17, 2023
2 parents c6c37ca + 0c2a77b commit f684a7c
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 f684a7c

Please sign in to comment.