Skip to content

Commit f1e0571

Browse files
Rename
1 parent 8428d06 commit f1e0571

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Node/ClassPropertiesNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function getUninitializedProperties(
135135
if (!$is->yes() && $classReflection->hasConstructor()) {
136136
$constructorDeclaringClass = $classReflection->getConstructor()->getDeclaringClass();
137137
if ($constructorDeclaringClass->getName() !== $classReflection->getName()) {
138-
$is = $this->isPropertyInitializedByConstructorChain($constructorDeclaringClass, $property->getName());
138+
$is = $this->isPromotedByConstructorChain($constructorDeclaringClass, $property->getName());
139139
}
140140
}
141141
if (!$is->yes() && $classReflection->hasNativeProperty($property->getName())) {
@@ -425,7 +425,7 @@ public function getPropertyAssigns(): array
425425
return $this->propertyAssigns;
426426
}
427427

428-
private function isPropertyInitializedByConstructorChain(ClassReflection $constructorDeclaringClass, string $propertyName): TrinaryLogic
428+
private function isPromotedByConstructorChain(ClassReflection $constructorDeclaringClass, string $propertyName): TrinaryLogic
429429
{
430430
$ancestor = $constructorDeclaringClass;
431431
do {

0 commit comments

Comments
 (0)