Skip to content

Commit

Permalink
[DowngradePhp74] use AbstractRector on DowngradeProcOpenArrayCommandA…
Browse files Browse the repository at this point in the history
…rgRector
  • Loading branch information
samsonasik committed Sep 19, 2023
1 parent 3782784 commit a759a87
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a759a87

Please sign in to comment.