diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 3478d1a..4d68d07 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -22,14 +22,10 @@ $cacheService get($cacheService)]]> $cookieDomain - $cookieHttpOnly $cookieName $cookiePath $cookieSameSite - $cookieSecure $lastModified - $persistent - $autoRegenerate diff --git a/src/CacheSessionPersistenceFactory.php b/src/CacheSessionPersistenceFactory.php index 800918f..b2e4654 100644 --- a/src/CacheSessionPersistenceFactory.php +++ b/src/CacheSessionPersistenceFactory.php @@ -43,12 +43,12 @@ public function __invoke(ContainerInterface $container) $cacheLimiter, $cacheExpire, $lastModified, - $persistent, + (bool) $persistent, $cookieDomain, - $cookieSecure, - $cookieHttpOnly, + (bool) $cookieSecure, + (bool) $cookieHttpOnly, $cookieSameSite, - $autoRegenerate + (bool) $autoRegenerate ); } }