Skip to content

Commit

Permalink
Merge pull request #7786 from samsonasik/remove-unused-cast
Browse files Browse the repository at this point in the history
Remove unused cast on RedisHandler
  • Loading branch information
samsonasik authored Aug 7, 2023
2 parents 46a1e5e + 5fd470f commit 0e70713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/Session/Handlers/RedisHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ public function __construct(AppConfig $config, string $ipAddress)
if ($session instanceof SessionConfig) {
$this->sessionExpiration = empty($session->expiration)
? (int) ini_get('session.gc_maxlifetime')
: (int) $session->expiration;
: $session->expiration;
// Add sessionCookieName for multiple session cookies.
$this->keyPrefix .= $session->cookieName . ':';
} else {
// `Config/Session.php` is absence
$this->sessionExpiration = empty($config->sessionExpiration)
? (int) ini_get('session.gc_maxlifetime')
: (int) $config->sessionExpiration;
: $config->sessionExpiration;
// Add sessionCookieName for multiple session cookies.
$this->keyPrefix .= $config->sessionCookieName . ':';
}
Expand Down

0 comments on commit 0e70713

Please sign in to comment.