Skip to content

Commit

Permalink
[Bug] Remove deprecated each() #12
Browse files Browse the repository at this point in the history
  • Loading branch information
tunecino authored Aug 23, 2020
1 parent 07c2a3c commit 5009397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UrlRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function parseRequest($manager, $request)
} else {
$relation = $key;
if (is_array($value)) {
list($urlName, $controller) = each($value);
list($urlName, $controller) = [key($value), current($value)];
} else {
$urlName = $this->pluralize ? Inflector::camel2id(Inflector::pluralize($relation)) : Inflector::camel2id($relation);
$controller = $value;
Expand Down

0 comments on commit 5009397

Please sign in to comment.