| @@ -45,8 +45,8 @@ | ||
| 45 | 45 | * Add middleware | 
| 46 | 46 | * Accepts: a class name, an instance of a class, a callable, an array of any of the previous | 
| 47 | 47 | * | 
| 48 | - * @param string|callable|\Obsidian\Middleware\MiddlewareInterface|array $middleware | |
| 49 | - * @return object $this | |
| 48 | + * @param callable $middleware | |
| 49 | + * @return HasMiddlewareTrait $this | |
| 50 | 50 | */ | 
| 51 | 51 |  	public function addMiddleware( $middleware ) { | 
| 52 | 52 | $middleware = Mixed::toArray( $middleware, true ); | 
| @@ -4,8 +4,8 @@ | ||
| 4 | 4 | |
| 5 | 5 | use Closure; | 
| 6 | 6 | use Exception; | 
| 7 | -use Psr\Http\Message\ResponseInterface; | |
| 8 | 7 | use Obsidian\Helpers\Mixed; | 
| 8 | +use Psr\Http\Message\ResponseInterface; | |
| 9 | 9 | |
| 10 | 10 | /** | 
| 11 | 11 | * Allow objects to have middleware |