We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a22661 commit 3ce9bbbCopy full SHA for 3ce9bbb
1 file changed
src/NodeManipulator/ClassDependencyManipulator.php
@@ -210,17 +210,7 @@ public function hasFinalParentConstructor(Class_ $class): bool
210
continue;
211
}
212
213
- $parentClass = $this->astResolver->resolveClassFromClassReflection($ancestor);
214
- if (! $parentClass instanceof ClassLike) {
215
- continue;
216
- }
217
-
218
- $parentConstructorMethod = $parentClass->getMethod(MethodName::CONSTRUCT);
219
- if (! $parentConstructorMethod instanceof ClassMethod) {
220
221
222
223
- return $parentConstructorMethod->isFinal();
+ return $ancestor->getNativeMethod(MethodName::CONSTRUCT)->isFinalByKeyword()->yes();
224
225
226
return false;
0 commit comments