Skip to content

Commit

Permalink
Optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 3, 2022
1 parent 0ae28f7 commit c4c64fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Reflection/Php/PhpClassReflectionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ private function createProperty(
&& $this->inferPrivatePropertyTypeFromConstructor
&& $declaringClassReflection->getFileName() !== null
&& $propertyReflection->isPrivate()
&& (!method_exists($propertyReflection, 'isPromoted') || !$propertyReflection->isPromoted())
&& (!method_exists($propertyReflection, 'hasType') || !$propertyReflection->hasType())
&& $declaringClassReflection->hasConstructor()
&& $declaringClassReflection->getConstructor()->getDeclaringClass()->getName() === $declaringClassReflection->getName()
Expand Down

0 comments on commit c4c64fe

Please sign in to comment.