diff --git a/composer.json b/composer.json index 3c496b2..7d0aaad 100644 --- a/composer.json +++ b/composer.json @@ -6,6 +6,7 @@ "middleware", "dispatcher" ], + "license": "MIT", "require": { "php": ">=7.4", "psr/http-server-middleware": "^1.0", diff --git a/src/DispatcherFactoryInterface.php b/src/DispatcherFactoryInterface.php index b4b1e63..5d3735a 100644 --- a/src/DispatcherFactoryInterface.php +++ b/src/DispatcherFactoryInterface.php @@ -16,7 +16,7 @@ interface DispatcherFactoryInterface { /** - * @param MiddlewareInterface[]|RequestHandlerInterface[] $middlewares + * @param MiddlewareInterface[]|RequestHandlerInterface[]|string[] $middlewares * * @return Dispatcher */ diff --git a/src/MiddlewarePipeFactoryInterface.php b/src/MiddlewarePipeFactoryInterface.php index e2c4b52..3bc0e7a 100644 --- a/src/MiddlewarePipeFactoryInterface.php +++ b/src/MiddlewarePipeFactoryInterface.php @@ -16,7 +16,7 @@ interface MiddlewarePipeFactoryInterface { /** - * @param MiddlewareInterface[]|RequestHandlerInterface[]|array $middlewares + * @param MiddlewareInterface[]|RequestHandlerInterface[]|string[] $middlewares * * @return MiddlewarePipe *