Skip to content

Commit

Permalink
Add "callable" type for consistency with other methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jul 25, 2016
1 parent 255fb52 commit 12612ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/MiddlewareQueue.php
Expand Up @@ -112,7 +112,7 @@ public function insertAt($index, callable $callable)
* @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) {
Expand All @@ -138,7 +138,7 @@ public function insertBefore($class, $callable)
* @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) {
Expand Down

0 comments on commit 12612ff

Please sign in to comment.