PHP 8.2.31
Preview: ArgumentMover.php Size: 536 B
/opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/rector/rector-phpunit/src/NodeAnalyzer/ArgumentMover.php

<?php

declare (strict_types=1);
namespace Rector\PHPUnit\NodeAnalyzer;

use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Expr\StaticCall;
final class ArgumentMover
{
    /**
     * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $node
     */
    public function removeFirstArg($node) : void
    {
        if ($node->isFirstClassCallable()) {
            return;
        }
        $methodArguments = $node->getArgs();
        \array_shift($methodArguments);
        $node->args = $methodArguments;
    }
}

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
536 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
6.62 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.80 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
3.08 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.21 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
3.59 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).