Skip to content

Commit

Permalink
Remove call to ReflectionProperty::setAccessible()
Browse files Browse the repository at this point in the history
This method is no-op starting from PHP 8.1.
  • Loading branch information
BenMorel committed May 2, 2024
1 parent 8b49c5a commit 46248db
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/PropertyMapping/EmbeddableMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 46248db

Please sign in to comment.