Skip to content

Commit 58f40b4

Browse files
committed
Updated Rector to commit 3ce9bbba2b30c0d4dcee5d7478a410ce196c0f5d
rectorphp/rector-src@3ce9bbb [NodeManipulator] Use ClassReflection parent isFinalByKeyword()->yes() on ClassDependencyManipulator (#8002)
1 parent 8921fd6 commit 58f40b4

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

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 = '8a226613efca078f0dc3629e94c3463f4125b18f';
22+
public const PACKAGE_VERSION = '3ce9bbba2b30c0d4dcee5d7478a410ce196c0f5d';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-05-21 20:22:41';
27+
public const RELEASE_DATE = '2026-05-21 21:48:33';
2828
/**
2929
* @var int
3030
*/

src/NodeManipulator/ClassDependencyManipulator.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,7 @@ public function hasFinalParentConstructor(Class_ $class): bool
175175
if (!$ancestor->hasNativeMethod(MethodName::CONSTRUCT)) {
176176
continue;
177177
}
178-
$parentClass = $this->astResolver->resolveClassFromClassReflection($ancestor);
179-
if (!$parentClass instanceof ClassLike) {
180-
continue;
181-
}
182-
$parentConstructorMethod = $parentClass->getMethod(MethodName::CONSTRUCT);
183-
if (!$parentConstructorMethod instanceof ClassMethod) {
184-
continue;
185-
}
186-
return $parentConstructorMethod->isFinal();
178+
return $ancestor->getNativeMethod(MethodName::CONSTRUCT)->isFinalByKeyword()->yes();
187179
}
188180
return \false;
189181
}

0 commit comments

Comments
 (0)