Skip to content

Commit f38fd4a

Browse files
committed
Updated Rector to commit 461c9c444682a9ecc57f33a97c1a29efa844368e
rectorphp/rector-src@461c9c4 [DeadCode] Skip different default param not typed on RemoveParentDelegatingConstructorRector (#7905)
1 parent 59cba78 commit f38fd4a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

rules/DeadCode/Rector/ClassMethod/RemoveParentDelegatingConstructorRector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ private function areConstructorAndParentParameterTypesMatching(ClassMethod $clas
196196
$parameterType = $param->type;
197197
// no type override
198198
if ($parameterType === null) {
199+
if ($param->default instanceof Expr && $this->isDifferentDefaultValue($param->default, $extendedMethodReflection, $position)) {
200+
return \false;
201+
}
199202
continue;
200203
}
201204
$parametersSelector = $extendedMethodReflection->getOnlyVariant();

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 = '1424f509e8852880ebf58d5a56fa17aa32511dce';
22+
public const PACKAGE_VERSION = '461c9c444682a9ecc57f33a97c1a29efa844368e';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-02-20 18:44:14';
27+
public const RELEASE_DATE = '2026-02-20 18:44:35';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)