argsAnalyzer = $argsAnalyzer; } public function createFromFuncCall(\PhpParser\Node\Expr\FuncCall $funcCall, bool $isPositive) : ?\Rector\Php80\ValueObject\StrStartsWith { if (!$this->argsAnalyzer->isArgsInstanceInArgsPositions($funcCall->args, [0, 1])) { return null; } /** @var Arg $firstArg */ $firstArg = $funcCall->args[0]; $haystack = $firstArg->value; /** @var Arg $secondArg */ $secondArg = $funcCall->args[1]; $needle = $secondArg->value; return new \Rector\Php80\ValueObject\StrStartsWith($funcCall, $haystack, $needle, $isPositive); } }