From 90e61a244abe9a59a065a64a699dc2b9cc03a718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Demonchaux?= Date: Fri, 3 Nov 2023 09:29:26 +0100 Subject: [PATCH] supression psalm error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Demonchaux --- psalm-baseline.xml | 3 +++ src/AbstractStaticResourceHandlerFactory.php | 6 ++++++ 2 files changed, 9 insertions(+) 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