mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fix incorrect argument order.
This commit is contained in:
parent
06c3f01af6
commit
6cf6903982
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class Hash {
|
||||||
return (array)self::get($data, $path);
|
return (array)self::get($data, $path);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strpos('[', $path) === false) {
|
if (strpos($path, '[') === false) {
|
||||||
$tokens = explode('.', $path);
|
$tokens = explode('.', $path);
|
||||||
} else {
|
} else {
|
||||||
$tokens = String::tokenize($path, '.', '[', ']');
|
$tokens = String::tokenize($path, '.', '[', ']');
|
||||||
|
|
Loading…
Add table
Reference in a new issue