From 46248db93d0365b3c71dea161fde6bc85d93eab1 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Fri, 3 May 2024 00:26:29 +0200 Subject: [PATCH] Remove call to ReflectionProperty::setAccessible() This method is no-op starting from PHP 8.1. --- src/PropertyMapping/EmbeddableMapping.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/PropertyMapping/EmbeddableMapping.php b/src/PropertyMapping/EmbeddableMapping.php index 64bf594..74013ef 100644 --- a/src/PropertyMapping/EmbeddableMapping.php +++ b/src/PropertyMapping/EmbeddableMapping.php @@ -139,7 +139,6 @@ public function convertPropToFields(mixed $propValue) : array } else { /** @psalm-var ReflectionObject $r */ $p = $r->getProperty($prop); - $p->setAccessible(true); $idPropValue = $p->getValue($entity); }