diff --git a/lib/Doctrine/ORM/Mapping/ReflectionEmbeddedProperty.php b/lib/Doctrine/ORM/Mapping/ReflectionEmbeddedProperty.php index 49a2ab2b064..d08be941584 100644 --- a/lib/Doctrine/ORM/Mapping/ReflectionEmbeddedProperty.php +++ b/lib/Doctrine/ORM/Mapping/ReflectionEmbeddedProperty.php @@ -22,6 +22,7 @@ use Doctrine\Instantiator\Instantiator; use ReflectionProperty; +use ReturnTypeWillChange; /** * Acts as a proxy to a nested Property structure, making it look like @@ -61,6 +62,7 @@ public function __construct(ReflectionProperty $parentProperty, ReflectionProper /** * {@inheritDoc} */ + #[ReturnTypeWillChange] public function getValue($object = null) { $embeddedObject = $this->parentProperty->getValue($object); @@ -75,6 +77,7 @@ public function getValue($object = null) /** * {@inheritDoc} */ + #[ReturnTypeWillChange] public function setValue($object, $value = null) { $embeddedObject = $this->parentProperty->getValue($object);