From efdd3594858e9892e370c87c4fe4b1f3d93f4f3d Mon Sep 17 00:00:00 2001 From: Dylan Grech Date: Sun, 23 Aug 2020 14:31:06 +0200 Subject: [PATCH] Fixed spelling and changed to shorthand array --- src/View/ArrayData.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/View/ArrayData.php b/src/View/ArrayData.php index 16ffd5113..b8694c4eb 100644 --- a/src/View/ArrayData.php +++ b/src/View/ArrayData.php @@ -37,14 +37,14 @@ class ArrayData extends ViewableData if (ArrayLib::is_associative($value)) { $this->array = $value; } elseif (count($value) === 0) { - $this->array = array(); + $this->array = []; } else { - $message = 'Parameter to ArrayData constructor needs to be an object or associative array, - enumareted array passed instead. Did you mean to use ArrayList?'; + $message = 'ArrayData constructor expects an object or associative array, + enumerated array passed instead. Did you mean to use ArrayList?'; throw new InvalidArgumentException($message); } } else { - $message = 'Parameter to ArrayData constructor needs to be an object or associative array'; + $message = 'ArrayData constructor expects an object or associative array'; throw new InvalidArgumentException($message); } parent::__construct();