Skip to content

Commit aaa2735

Browse files
committed
Merge branch '4.4'
* 4.4: [Security] Fix merge remove outdated workflow test drop wrong test (fix merge)
2 parents 6991f27 + 1de0f27 commit aaa2735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)