diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 9c2431b2..76a143ac 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,6 +1,9 @@ + + $lastModifiedDirectives + $cacheControlDirectives[$regex] diff --git a/src/AbstractStaticResourceHandlerFactory.php b/src/AbstractStaticResourceHandlerFactory.php index 3fe2866b..1c29956e 100644 --- a/src/AbstractStaticResourceHandlerFactory.php +++ b/src/AbstractStaticResourceHandlerFactory.php @@ -51,6 +51,12 @@ abstract public function __invoke(ContainerInterface $container); * This method is marked protected to allow users to extend this factory * in order to provide their own middleware and/or configuration schema. * + * @psalm-param $config array{ + * type-map?: array, + * gzip?: array{level?: int}, + * clearstatcache-interval?: int, + * directives?: array + * }, * @return StaticResourceHandler\MiddlewareInterface[] */ protected function configureMiddleware(array $config): array