Skip to content

Commit c4c64fe

Browse files
committed
Optimization
1 parent 0ae28f7 commit c4c64fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Reflection/Php/PhpClassReflectionExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ private function createProperty(
291291
&& $this->inferPrivatePropertyTypeFromConstructor
292292
&& $declaringClassReflection->getFileName() !== null
293293
&& $propertyReflection->isPrivate()
294+
&& (!method_exists($propertyReflection, 'isPromoted') || !$propertyReflection->isPromoted())
294295
&& (!method_exists($propertyReflection, 'hasType') || !$propertyReflection->hasType())
295296
&& $declaringClassReflection->hasConstructor()
296297
&& $declaringClassReflection->getConstructor()->getDeclaringClass()->getName() === $declaringClassReflection->getName()

0 commit comments

Comments
 (0)