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);
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 2a73163ca2c..7283243528a 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -136,6 +136,11 @@
lib/Doctrine/ORM/Cache/DefaultQueryCache.php
+
+
+ lib/Doctrine/ORM/Mapping/ReflectionEmbeddedProperty.php
+
+
lib/Doctrine/ORM/EntityManagerInterface.php