Skip to content

Commit 4167502

Browse files
committed
Updated Rector to commit 08f6dc3c299038919818df2970eaf69a88fd1314
rectorphp/rector-src@08f6dc3 speedup - skip refleciton if all params are typed
1 parent 6bcaab8 commit 4167502

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

rules/TypeDeclaration/Rector/ClassMethod/ParamTypeByMethodCallTypeRector.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,19 @@ private function shouldSkipClassMethod(ClassMethod $classMethod): bool
141141
if ($classMethod->params === []) {
142142
return \true;
143143
}
144+
$isMissingParameterTypes = \false;
145+
foreach ($classMethod->params as $param) {
146+
if ($param->type instanceof Node) {
147+
continue;
148+
}
149+
if ($param->variadic) {
150+
continue;
151+
}
152+
$isMissingParameterTypes = \true;
153+
}
154+
if ($isMissingParameterTypes === \false) {
155+
return \true;
156+
}
144157
return $this->parentClassMethodTypeOverrideGuard->hasParentClassMethod($classMethod);
145158
}
146159
/**

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '77aeeb30e13f14dd18844a0a65f844045d681fb0';
22+
public const PACKAGE_VERSION = '08f6dc3c299038919818df2970eaf69a88fd1314';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-10-27 00:40:50';
27+
public const RELEASE_DATE = '2025-10-27 10:24:01';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)