From f8372ef6dc2edf0edcecca40659a3f875e00872f Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Tue, 5 Sep 2017 09:42:52 +1200 Subject: [PATCH] MINOR Add default value to ArrayData constructor --- src/View/ArrayData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/ArrayData.php b/src/View/ArrayData.php index 02c6d4bda..1f1d4ded1 100644 --- a/src/View/ArrayData.php +++ b/src/View/ArrayData.php @@ -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);