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])) {