Fixed spelling and changed to shorthand array

This commit is contained in:
Dylan Grech 2020-08-23 14:31:06 +02:00
parent a380cc7444
commit efdd359485

View File

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