Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit fc0576e

Browse files
committed
[Security] Fix merge
1 parent 3ca3e98 commit fc0576e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)