protected function updateGroupStack(array $attributes): void
    {
        if ($this->hasGroupStack()) {
            $attributes = RouteGroup::merge($attributes, \end($this->groupStack));
        }

        $this->groupStack[] = $attributes;
    }
protected function updateGroupStack(array $attributes): void
    {
        if ($this->hasGroupStack()) {
            $attributes = RouteGroup::merge($attributes, \end($this->groupStack));
        }

        $this->groupStack[] = $attributes;
    }
protected function updateGroupStack ( array $ attributes ) : void { if ( $ this -> hasGroupStack ( ) ) { $ attributes = RouteGroup :: merge ( $ attributes , \ end ( $ this -> groupStack ) ) ; } $ this -> groupStack [ ] = $ attributes ; }
Update the group stack with the given attributes.

@param array $attributes

@return void
Update the group stack with the given attributes .