Skip to content

Commit 45b56d2

Browse files
committed
[] to array()
1 parent a0a74fb commit 45b56d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ArrayUtil.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static function get(array $data, $key, $default = null)
5858

5959
protected static function getArray(array $input, $keys, $default = null)
6060
{
61-
$output = [];
61+
$output = array();
6262

6363
foreach ($keys as $key) {
6464
static::set($output, $key, static::get($input, $key, $default));
@@ -108,7 +108,7 @@ public static function set(array &$data, $key, $value)
108108
// iterate through all of $segments except the last one
109109
foreach ($segments as $segment) {
110110
if (!array_key_exists($segment, $data)) {
111-
$data[$segment] = [];
111+
$data[$segment] = array();
112112
} else if (!is_array($data[$segment])) {
113113
throw new \UnexpectedValueException('Non-array segment encountered');
114114
}

0 commit comments

Comments
 (0)