8000 minor #34159 [Security] Fix merge (chalasr) · symfony/symfony@913c485 · GitHub
[go: up one dir, main page]

Skip to content

Commit 913c485

Browse files
committed
minor #34159 [Security] Fix merge (chalasr)
This PR was merged into the 4.4 branch. Discussion ---------- [Security] Fix merge | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- fd0ed42 [Security] Fix merge
2 parents 0f5a7b8 + fd0ed42 commit 913c485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Core/Encoder/NativePasswordEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(int $opsLimit = null, int $memLimit = null, int $cos
4848
throw new \InvalidArgumentException('$cost must be in the range of 4-31.');
4949
}
5050

51-
$this->algo = (string) ($algo ?? \defined('PASSWORD_ARGON2ID') ? PASSWORD_ARGON2ID : (\defined('PASSWORD_ARGON2I') ? PASSWORD_ARGON2I : PASSWORD_BCRYPT));
51+
$this->algo = (string) ($algo ?? (\defined('PASSWORD_ARGON2ID') ? PASSWORD_ARGON2ID : (\defined('PASSWORD_ARGON2I') ? PASSWORD_ARGON2I : PASSWORD_BCRYPT)));
5252
$this->options = [
5353
'cost' => $cost,
5454
'time_cost' => $opsLimit,

0 commit comments

Comments
 (0)
0