From a4c7c73a2f3e0804491cb9cf33769b64850ffee4 Mon Sep 17 00:00:00 2001 From: Ian Foulds Date: Sun, 1 Oct 2023 17:24:38 +0100 Subject: [PATCH] Revert "Buf fix fir issue #113 - Use static instead of self." This reverts commit f7c9c358e20768e9b2e812ef10d809bfa3c11a74. Signed-off-by: Ian Foulds --- src/ReflectionHydrator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ReflectionHydrator.php b/src/ReflectionHydrator.php index a94cc6c..9718743 100644 --- a/src/ReflectionHydrator.php +++ b/src/ReflectionHydrator.php @@ -24,7 +24,7 @@ class ReflectionHydrator extends AbstractHydrator public function extract(object $object): array { $result = []; - foreach (static::getReflProperties($object) as $property) { + foreach (self::getReflProperties($object) as $property) { $propertyName = $this->extractName($property->getName(), $object); if (! $this->getCompositeFilter()->filter($propertyName)) { continue; @@ -44,7 +44,7 @@ public function extract(object $object): array */ public function hydrate(array $data, object $object) { - $reflProperties = static::getReflProperties($object); + $reflProperties = self::getReflProperties($object); foreach ($data as $key => $value) { $name = $this->hydrateName($key, $data); if (isset($reflProperties[$name])) {