mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Add default value to ArrayData constructor
This commit is contained in:
parent
16416fe15b
commit
f8372ef6dc
@ -29,7 +29,7 @@ class ArrayData extends ViewableData
|
||||
* @param object|array $value An associative array, or an object with simple properties.
|
||||
* Converts object properties to keys of an associative array.
|
||||
*/
|
||||
public function __construct($value)
|
||||
public function __construct($value = [])
|
||||
{
|
||||
if (is_object($value)) {
|
||||
$this->array = get_object_vars($value);
|
||||
|
Loading…
Reference in New Issue
Block a user