Skip to content

Commit

Permalink
Mark some props as readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk committed Feb 26, 2023
1 parent 02d910c commit 43b467f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Storageless/Http/SessionMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ final class SessionMiddleware implements MiddlewareInterface
public function __construct(
Configuration $configuration,
SetCookie $defaultCookie,
private int $idleTimeout,
private readonly int $idleTimeout,
private Clock $clock,
private int $refreshTime = self::DEFAULT_REFRESH_TIME,
private readonly int $refreshTime = self::DEFAULT_REFRESH_TIME,
) {
$this->config = $configuration;
$this->defaultCookie = clone $defaultCookie;
Expand Down

0 comments on commit 43b467f

Please sign in to comment.