We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9e35d8 + 315c7a6 commit 8e673feCopy full SHA for 8e673fe
src/Mouf/Html/Widgets/EvoluGrid/Utils/ObjectToArrayCaster.php
@@ -64,11 +64,7 @@ public function cast($object) : array
64
throw new \InvalidArgumentException('Argument passed to cast must be an array or an object.');
65
}
66
67
- $arr = [];
68
-
69
- foreach ($this->refClass->getProperties(\ReflectionProperty::IS_PUBLIC) as $property) {
70
- $arr[$property->getName()] = $property->getValue($object);
71
- }
+ $arr = get_object_vars($object);
72
73
foreach ($this->getters as $propertyName => $method) {
74
$arr[$propertyName] = $method->invoke($object);
0 commit comments