Skip to content

Commit

Permalink
Fixed GenericObjectSerialization
Browse files Browse the repository at this point in the history
  • Loading branch information
sorinsarca committed Dec 25, 2024
1 parent f7c4276 commit fd6da9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GenericObjectSerialization.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static function serialize(object $object): array
if ($property->isStatic() || !$property->getDeclaringClass()->isUserDefined()) {
continue;
}
// $property->setAccessible(true);
$property->setAccessible(true);
if ($property->isInitialized($object)) {
$data[$name] = $property->getValue($object);
}
Expand Down

0 comments on commit fd6da9a

Please sign in to comment.