Skip to content

Commit

Permalink
supression psalm error
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Demonchaux <demonchaux.stephane@gmail.com>
  • Loading branch information
fezfez committed Nov 3, 2023
1 parent 97a6359 commit 90e61a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.15.0@5c774aca4746caf3d239d9c8cadb9f882ca29352">
<file src="src/AbstractStaticResourceHandlerFactory.php">
<ArgumentTypeCoercion>
<code>$lastModifiedDirectives</code>
</ArgumentTypeCoercion>
<MixedArrayOffset>
<code>$cacheControlDirectives[$regex]</code>
</MixedArrayOffset>
Expand Down
6 changes: 6 additions & 0 deletions src/AbstractStaticResourceHandlerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>,
* gzip?: array{level?: int},
* clearstatcache-interval?: int,
* directives?: array<non-empty-string, array{cache-control?: string, last-modified?: bool, etag?: bool}>
* },
* @return StaticResourceHandler\MiddlewareInterface[]
*/
protected function configureMiddleware(array $config): array
Expand Down

0 comments on commit 90e61a2

Please sign in to comment.