Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Feb 11, 2025
1 parent 705f421 commit 01dad18
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Serializers/Native.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ protected function mapByReference(&$data)
}

foreach ($reflection->getProperties() as $property) {
if ($property->isStatic() || ! $property->getDeclaringClass()->isUserDefined()) {
if ($property->isStatic() || ! $property->getDeclaringClass()->isUserDefined() || $this->isVirtualProperty($property)) {
continue;
}

Expand All @@ -501,10 +501,6 @@ protected function mapByReference(&$data)
continue;
}

if ($this->isVirtualProperty($property)) {
continue;
}

$value = $property->getValue($instance);

if (is_array($value) || is_object($value)) {
Expand Down

0 comments on commit 01dad18

Please sign in to comment.