mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Use array_keys instead of array_flip
This commit is contained in:
parent
17652575f3
commit
9be789d371
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ class CakeRoute {
|
||||||
$lengths = array_map('strlen', $this->keys);
|
$lengths = array_map('strlen', $this->keys);
|
||||||
$flipped = array_combine($this->keys, $lengths);
|
$flipped = array_combine($this->keys, $lengths);
|
||||||
arsort($flipped);
|
arsort($flipped);
|
||||||
$keys = array_flip($flipped);
|
$keys = array_keys($flipped);
|
||||||
|
|
||||||
foreach ($keys as $key) {
|
foreach ($keys as $key) {
|
||||||
$string = null;
|
$string = null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue