Skip to content

Commit

Permalink
Revert "Buf fix fir issue laminas#113 - Use static instead of self."
Browse files Browse the repository at this point in the history
This reverts commit f7c9c35.

Signed-off-by: Ian Foulds <[email protected]>
  • Loading branch information
ianef committed Oct 10, 2023
1 parent 05116ab commit a4c7c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ReflectionHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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])) {
Expand Down

0 comments on commit a4c7c73

Please sign in to comment.