Skip to content

Commit

Permalink
Rename variable in CookieMiddleware constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
devanych committed Apr 20, 2021
1 parent 21e0394 commit e4fc4d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CookieMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ public function __construct(
$this->encryptor = $encryptor;
$this->signer = $signer;

foreach ($cookiesSettings as $pattern => $class) {
if ($class === self::ENCRYPT) {
foreach ($cookiesSettings as $pattern => $action) {
if ($action === self::ENCRYPT) {
$this->encryption[] = (string) $pattern;
continue;
}

if ($class === self::SIGN) {
if ($action === self::SIGN) {
$this->signature[] = (string) $pattern;
}
}
Expand Down

0 comments on commit e4fc4d9

Please sign in to comment.