From 61d6a8a1c0d1b82358e200a60b6b9c1c56526ff2 Mon Sep 17 00:00:00 2001 From: Mohamed Date: Sun, 21 Oct 2018 11:05:55 +0100 Subject: [PATCH] [5.7] Remove Duplicated Code --- src/Illuminate/Routing/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Routing/Router.php b/src/Illuminate/Routing/Router.php index 2ab7bb5dfc55..cc6bfd10df91 100644 --- a/src/Illuminate/Routing/Router.php +++ b/src/Illuminate/Routing/Router.php @@ -381,7 +381,7 @@ public function group(array $attributes, $routes) protected function updateGroupStack(array $attributes) { if (! empty($this->groupStack)) { - $attributes = RouteGroup::merge($attributes, end($this->groupStack)); + $attributes = $this->mergeWithLastGroup(...func_get_args()); } $this->groupStack[] = $attributes;