Skip to content

Commit d37f581

Browse files
authored
Merge pull request #6 from kaiqueprazeres/feature/GroupWarningRemove
Correction of the array of route groups before and after. array_value…
2 parents 62696b0 + 277dccc commit d37f581

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Router.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ public function group($name, $settings = null, $callback = null)
388388
$group['after'] = $list['after'];
389389
}
390390

391-
$group['before'] = array_values(array_unique($group['before']));
392-
$group['after'] = array_values(array_unique($group['after']));
391+
$group['before'] = array_values(array_unique( (array) $group['before']));
392+
$group['after'] = array_values(array_unique( (array) $group['after']));
393393

394394
array_push($this->groups, $group);
395395

0 commit comments

Comments
 (0)