Skip to content

Commit

Permalink
[12.x] Fix Session's getCookieExpirationDate incompatibility with C…
Browse files Browse the repository at this point in the history
…arbon 3 (#54313)

Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone authored Jan 23, 2025
1 parent 67ff0cd commit e7cb34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Session/Middleware/StartSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ protected function getCookieExpirationDate()
$config = $this->manager->getSessionConfig();

return $config['expire_on_close'] ? 0 : Date::instance(
Carbon::now()->addMinutes($config['lifetime'])
Carbon::now()->addMinutes((int) $config['lifetime'])
);
}

Expand Down

0 comments on commit e7cb34e

Please sign in to comment.