@@ -27,7 +27,7 @@ |
||
| 27 | 27 | /** |
| 28 | 28 | * Constructor |
| 29 | 29 | * |
| 30 | - * @param string|ConditionInterface $target |
|
| 30 | + * @param string $target |
|
| 31 | 31 | * @param Closure $callable |
| 32 | 32 | */ |
| 33 | 33 | public function __construct( $target, Closure $callable ) { |
@@ -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 |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | * Accepts: a class name, an instance of a class, a Closure or an array of any of the previous |
| 47 | 47 | * |
| 48 | 48 | * @param string|\Closure|\Obsidian\Middleware\MiddlewareInterface|array $middleware |
| 49 | - * @return object $this |
|
| 49 | + * @return HasMiddlewareTrait $this |
|
| 50 | 50 | */ |
| 51 | 51 | public function addMiddleware( $middleware ) { |
| 52 | 52 | $middleware = Mixed::toArray( $middleware ); |