diff --git a/src/Illuminate/Hashing/ArgonHasher.php b/src/Illuminate/Hashing/ArgonHasher.php index 013249ab1f04..a3197d6e1be0 100644 --- a/src/Illuminate/Hashing/ArgonHasher.php +++ b/src/Illuminate/Hashing/ArgonHasher.php @@ -29,14 +29,15 @@ class ArgonHasher implements HasherContract protected $threads = 2; /** - * Constructor. + * Create a new hasher instance. * - * @param array $options + * @param array $options + * @return void */ - public function __construct($options = null) + public function __construct(array $options = []) { - $this->memory = $options['memory'] ?? $this->memory; $this->time = $options['time'] ?? $this->time; + $this->memory = $options['memory'] ?? $this->memory; $this->threads = $options['threads'] ?? $this->threads; } diff --git a/src/Illuminate/Hashing/BcryptHasher.php b/src/Illuminate/Hashing/BcryptHasher.php index 7209b92d9cec..d0fadfbda7b8 100755 --- a/src/Illuminate/Hashing/BcryptHasher.php +++ b/src/Illuminate/Hashing/BcryptHasher.php @@ -15,11 +15,12 @@ class BcryptHasher implements HasherContract protected $rounds = 10; /** - * Constructor. + * Create a new hasher instance. * - * @param array $options + * @param array $options + * @return void */ - public function __construct($options = null) + public function __construct(array $options = []) { $this->rounds = $options['rounds'] ?? $this->rounds; }