File manager - Edit - /var/www/payraty/helpdesk/vendor/rector/rector/vendor/rector/rector-phpunit/src/NodeFactory/ArgumentShiftingFactory.php
Back
<?php declare (strict_types=1); namespace Rector\PHPUnit\NodeFactory; use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Identifier; final class ArgumentShiftingFactory { public function removeAllButFirstArgMethodCall(MethodCall $methodCall, string $methodName) : void { $methodCall->name = new Identifier($methodName); foreach (\array_keys($methodCall->args) as $i) { // keep first arg if ($i === 0) { continue; } unset($methodCall->args[$i]); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings