File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Mouf/Mvc/Splash/Routers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ class Router implements RouterInterface
30
30
/**
31
31
* @Important IfSet
32
32
*
33
- * @param MiddlewareInterface $middleware The PSR-7 middleware to call
33
+ * @param MiddlewareInterface|callable $middleware The PSR-7 middleware to call
34
34
* @param string $path The path to that middleware (defaults to /).
35
35
* @param ConditionInterface $enableCondition Whether the middleware must be enabled or not.
36
36
*/
37
- public function __construct (MiddlewareInterface $ middleware , $ path = '/ ' , ConditionInterface $ enableCondition = null )
37
+ public function __construct ($ middleware , $ path = '/ ' , ConditionInterface $ enableCondition = null )
38
38
{
39
39
$ this ->path = $ path ;
40
40
$ this ->middleware = $ middleware ;
You can’t perform that action at this time.
0 commit comments