doctrine / doctrine-laminas-hydrator

Doctrine hydrators for Laminas applications
https://www.doctrine-project.org/projects/doctrine-laminas-hydrator.html
MIT License
33 stars 19 forks source link

Lowered Psalm level to 3 #42

Closed driehle closed 2 years ago

driehle commented 2 years ago

This required only a few class-string changes to pass.

Once change that might look surprising:

-        $metadata   = $this->objectManager->getClassMetadata(ltrim($target, '\\'));
+        $metadata   = $this->objectManager->getClassMetadata($target);

This shouldn't cause any BC breaks, since $target is filled from $metadata->getAssociationTargetClass($field);, which does not return leading slashs. I think this is still a relict from very early orm versions.