Skip to content

Commit

Permalink
Merge pull request #627 from ChrisThompsonTLDR/bugfix/route-arrays
Browse files Browse the repository at this point in the history
Fixes a bug where passed to route() causes errors
  • Loading branch information
mlantz committed May 17, 2020
2 parents 64f2268 + ae9f533 commit 8d18ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ protected function getUrlAction($options)
protected function getRouteAction($options)
{
if (is_array($options)) {
return $this->url->route($options[0], array_slice($options, 1));
return $this->url->route($options[0], head(array_slice($options, 1)));
}

return $this->url->route($options);
Expand Down

0 comments on commit 8d18ac6

Please sign in to comment.