Browse Source

Add missing typehint.

Mark Story 8 years ago
parent
commit
dcbdaff0d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Routing/RouteCollection.php

+ 1 - 1
src/Routing/RouteCollection.php

@@ -438,7 +438,7 @@ class RouteCollection
      * @param array $middlewareNames Names of the middleware
      * @return $this
      */
-    public function middlewareGroup($name, $middlewareNames)
+    public function middlewareGroup($name, array $middlewareNames)
     {
         if ($this->hasMiddleware($name)) {
             $message = "Cannot add middleware group '$name'. A middleware by this name has already been registered.";