Skip to content

Commit f694f4c

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: Update Pbkdf2PasswordHasher.php
2 parents d23ad22 + d217c4d commit f694f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Hasher/Pbkdf2PasswordHasher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function hash(#[\SensitiveParameter] string $plainPassword, string $salt
6969
throw new LogicException(sprintf('The algorithm "%s" is not supported.', $this->algorithm));
7070
}
7171

72-
$digest = hash_pbkdf2($this->algorithm, $plainPassword, $salt, $this->iterations, $this->length, true);
72+
$digest = hash_pbkdf2($this->algorithm, $plainPassword, $salt ?? '', $this->iterations, $this->length, true);
7373

7474
return $this->encodeHashAsBase64 ? base64_encode($digest) : bin2hex($digest);
7575
}

0 commit comments

Comments
 (0)