Browse Source

Add "callable" type for consistency with other methods.

ADmad 9 years ago
parent
commit
12612ff4c6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Http/MiddlewareQueue.php

+ 2 - 2
src/Http/MiddlewareQueue.php

@@ -112,7 +112,7 @@ class MiddlewareQueue implements Countable
      * @param callable $callable The middleware to insert
      * @return $this
      */
-    public function insertBefore($class, $callable)
+    public function insertBefore($class, callable $callable)
     {
         $found = false;
         foreach ($this->queue as $i => $object) {
@@ -138,7 +138,7 @@ class MiddlewareQueue implements Countable
      * @param callable $callable The middleware to insert
      * @return $this
      */
-    public function insertAfter($class, $callable)
+    public function insertAfter($class, callable $callable)
     {
         $found = false;
         foreach ($this->queue as $i => $object) {