MINOR Add default value to ArrayData constructor

This commit is contained in:
Robbie Averill 2017-09-05 09:42:52 +12:00
parent 16416fe15b
commit f8372ef6dc

View File

@ -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);