mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fix short-array usage.
This commit is contained in:
parent
3f10a0227a
commit
84a15dc9df
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue