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 0ae28f7 commit c4c64feCopy full SHA for c4c64fe
src/Reflection/Php/PhpClassReflectionExtension.php
@@ -291,6 +291,7 @@ private function createProperty(
291
&& $this->inferPrivatePropertyTypeFromConstructor
292
&& $declaringClassReflection->getFileName() !== null
293
&& $propertyReflection->isPrivate()
294
+ && (!method_exists($propertyReflection, 'isPromoted') || !$propertyReflection->isPromoted())
295
&& (!method_exists($propertyReflection, 'hasType') || !$propertyReflection->hasType())
296
&& $declaringClassReflection->hasConstructor()
297
&& $declaringClassReflection->getConstructor()->getDeclaringClass()->getName() === $declaringClassReflection->getName()
0 commit comments