mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-11 18:01:21 +01:00
ArrayHelper::toArray() now uses $properties parameter in recursive calls for descending objects
This commit is contained in:
@@ -81,7 +81,7 @@ class BaseArrayHelper
|
||||
}
|
||||
}
|
||||
|
||||
return $recursive ? static::toArray($result) : $result;
|
||||
return $recursive ? static::toArray($result, $properties) : $result;
|
||||
}
|
||||
}
|
||||
if ($object instanceof Arrayable) {
|
||||
|
||||
Reference in New Issue
Block a user