mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
fixed arrayHelper::toArray() recursive call
added a missing argument
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user