Skip to content
Snippets Groups Projects

Issue #3530186: Introduce kernel parameters for password hashing algorithm and options

Files
6
@@ -12,7 +12,7 @@ class PhpPassword implements PasswordInterface {
/**
* Constructs a new password hashing instance.
*
* @param string $algorithm
* @param string|null $algorithm
* The hashing algorithm to use. Defaults to PHP default.
* @param array $options
* List of options. Refer to password_hash() for available options.
@@ -20,7 +20,7 @@ class PhpPassword implements PasswordInterface {
* @see https://www.php.net/password_hash
*/
public function __construct(
protected string $algorithm = PASSWORD_DEFAULT,
protected ?string $algorithm = NULL,
protected array $options = [],
) {
}
Loading