Commit d2d94ab3 by Carsten Brandt

fixed arrayHelper::toArray() recursive call

added a missing argument
parent d3d832a3
......@@ -81,7 +81,7 @@ class BaseArrayHelper
$result = [];
foreach ($object as $key => $value) {
if ($recursive && (is_array($value) || is_object($value))) {
$result[$key] = static::toArray($value, true);
$result[$key] = static::toArray($value, $properties, true);
} else {
$result[$key] = $value;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment