Skip to content

Commit

Permalink
Merge pull request #520 from psr7-sessions/dependabot/composer/vimeo/…
Browse files Browse the repository at this point in the history
…psalm-4.28.0

Build(deps-dev): bump vimeo/psalm from 4.27.0 to 4.28.0
  • Loading branch information
Ocramius authored Oct 10, 2022
2 parents 073176e + dece990 commit 6df5756
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"psalm/plugin-phpunit": "^0.17.0",
"roave/infection-static-analysis-plugin": "^1.23.0",
"squizlabs/php_codesniffer": "^3.7.1",
"vimeo/psalm": "^4.27.0"
"vimeo/psalm": "^4.28.0"
},
"config": {
"allow-plugins": {
Expand Down
15 changes: 8 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/Storageless/Http/SessionMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ private function getTokenCookie(SessionInterface $sessionContainer): SetCookie

private function getExpirationCookie(): SetCookie
{
$expirationDate = $this->clock->now()->modify('-30 days');

assert($expirationDate !== false);

return $this
->defaultCookie
->withValue(null)
->withExpires($expirationDate);
->withExpires(
$this->clock
->now()
->modify('-30 days'),
);
}
}

0 comments on commit 6df5756

Please sign in to comment.