Updated Rector to commit 765b63696eb3bc240e92f10b00169b146c99463a

765b63696e [TypeDeclaration][Performance] Check typed param already early on ParamTypeByMethodCallTypeRector (#5295)
This commit is contained in:
Tomas Votruba 2023-11-28 11:12:27 +00:00
parent 7a2348073c
commit 54e7a3a895
2 changed files with 5 additions and 5 deletions

View File

@ -163,13 +163,13 @@ CODE_SAMPLE
}
private function shouldSkipParam(Param $param, ClassMethod $classMethod) : bool
{
if (!$this->paramTypeAddGuard->isLegal($param, $classMethod)) {
// already has type, skip
if ($param->type !== null) {
return \true;
}
if ($param->variadic) {
return \true;
}
// already has type, skip
return $param->type !== null;
return !$this->paramTypeAddGuard->isLegal($param, $classMethod);
}
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '118fbde3b1ccc3685c55cd2704bc971d2d49ef41';
public const PACKAGE_VERSION = '765b63696eb3bc240e92f10b00169b146c99463a';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-11-28 11:08:22';
public const RELEASE_DATE = '2023-11-28 18:10:17';
/**
* @var int
*/