Skip to content

Commit 5009397

Browse files
authored
[Bug] Remove deprecated each() tunecino#12
1 parent 07c2a3c commit 5009397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UrlRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function parseRequest($manager, $request)
188188
} else {
189189
$relation = $key;
190190
if (is_array($value)) {
191-
list($urlName, $controller) = each($value);
191+
list($urlName, $controller) = [key($value), current($value)];
192192
} else {
193193
$urlName = $this->pluralize ? Inflector::camel2id(Inflector::pluralize($relation)) : Inflector::camel2id($relation);
194194
$controller = $value;

0 commit comments

Comments
 (0)