Skip to content

Commit

Permalink
Type casting for boolean arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Izewski <[email protected]>
  • Loading branch information
Michal Izewski committed May 7, 2024
1 parent e571fe6 commit c78750d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,10 @@
<code>$cacheService</code>
<code><![CDATA[$container->get($cacheService)]]></code>
<code>$cookieDomain</code>
<code>$cookieHttpOnly</code>
<code>$cookieName</code>
<code>$cookiePath</code>
<code>$cookieSameSite</code>
<code>$cookieSecure</code>
<code>$lastModified</code>
<code>$persistent</code>
<code>$autoRegenerate</code>
</MixedArgument>
<MixedArrayAccess>
<code><![CDATA[$config['cache_expire']]]></code>
Expand Down
8 changes: 4 additions & 4 deletions src/CacheSessionPersistenceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
}

0 comments on commit c78750d

Please sign in to comment.