diff --git a/rules/DowngradePhp74/Rector/FuncCall/DowngradeProcOpenArrayCommandArgRector.php b/rules/DowngradePhp74/Rector/FuncCall/DowngradeProcOpenArrayCommandArgRector.php index 25a275a7..e6c57567 100644 --- a/rules/DowngradePhp74/Rector/FuncCall/DowngradeProcOpenArrayCommandArgRector.php +++ b/rules/DowngradePhp74/Rector/FuncCall/DowngradeProcOpenArrayCommandArgRector.php @@ -9,15 +9,14 @@ use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\Ternary; use PhpParser\Node\Scalar\String_; -use PHPStan\Analyser\Scope; -use Rector\Core\Rector\AbstractScopeAwareRector; +use Rector\Core\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Tests\DowngradePhp74\Rector\FuncCall\DowngradeProcOpenArrayCommandArgRector\DowngradeProcOpenArrayCommandArgRectorTest */ -final class DowngradeProcOpenArrayCommandArgRector extends AbstractScopeAwareRector +final class DowngradeProcOpenArrayCommandArgRector extends AbstractRector { public function getRuleDefinition(): RuleDefinition { @@ -48,7 +47,7 @@ public function getNodeTypes(): array /** * @param FuncCall $node */ - public function refactorWithScope(Node $node, Scope $scope): ?FuncCall + public function refactor(Node $node): ?FuncCall { if (! $this->isName($node, 'proc_open')) { return null;