Fix short-array usage.

This commit is contained in:
mark_story 2017-02-14 14:12:38 -05:00
parent 3f10a0227a
commit 84a15dc9df

View file

@ -49,7 +49,7 @@ class Hash {
if (is_string($path) || is_numeric($path)) { if (is_string($path) || is_numeric($path)) {
$parts = explode('.', $path); $parts = explode('.', $path);
} elseif (is_bool($path) || $path === null) { } elseif (is_bool($path) || $path === null) {
$parts = [$path]; $parts = array($path);
} else { } else {
if (!is_array($path)) { if (!is_array($path)) {
throw new InvalidArgumentException(__d('cake_dev', throw new InvalidArgumentException(__d('cake_dev',