Skip to content

Commit

Permalink
Ensure initial middleware is typed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowhand committed Nov 14, 2016
1 parent 60c04e7 commit b7d1b10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Stack.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ class Stack
/**
* @var array
*/
private $middleware;
private $middleware = [];

/**
* @param array $middleware
*/
public function __construct(array $middleware = [])
{
$this->middleware = $middleware;
array_map([$this, 'append'], $middleware);
}

/**
Expand Down

0 comments on commit b7d1b10

Please sign in to comment.