@@ -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 ) { |
@@ -43,8 +43,8 @@ |
||
| 43 | 43 | /** |
| 44 | 44 | * Add middleware |
| 45 | 45 | * |
| 46 | - * @param callable|\Obsidian\Middleware\MiddlewareInterface|array $middleware |
|
| 47 | - * @return object $this |
|
| 46 | + * @param callable $middleware |
|
| 47 | + * @return HasMiddlewareTrait $this |
|
| 48 | 48 | */ |
| 49 | 49 | public function addMiddleware( $middleware ) { |
| 50 | 50 | $middleware = is_array( $middleware ) ? $middleware : [$middleware]; |