@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * @deprecated Use Password::needsRehash() instead |
| 67 | 67 | */ |
| 68 | - public function shouldBeRehashed($algorithm = PASSWORD_DEFAULT, array $options = []) : bool |
|
| 68 | + public function shouldBeRehashed($algorithm = PASSWORD_DEFAULT, array $options = [ ]) : bool |
|
| 69 | 69 | { |
| 70 | 70 | if (null === $this->hash) { |
| 71 | 71 | return true; |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | return password_needs_rehash($this->hash, $algorithm, $options); |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - public function needsRehash(string $algorithm = PASSWORD_DEFAULT, array $options = []): bool |
|
| 77 | + public function needsRehash(string $algorithm = PASSWORD_DEFAULT, array $options = [ ]): bool |
|
| 78 | 78 | { |
| 79 | 79 | if (null === $this->hash) { |
| 80 | 80 | return true; |
@@ -88,12 +88,12 @@ discard block |
||
| 88 | 88 | /** |
| 89 | 89 | * @deprecated Use Password::hash() instead |
| 90 | 90 | */ |
| 91 | - public function getNewHash($algorithm = PASSWORD_DEFAULT, array $options = []) : string |
|
| 91 | + public function getNewHash($algorithm = PASSWORD_DEFAULT, array $options = [ ]) : string |
|
| 92 | 92 | { |
| 93 | 93 | return password_hash($this->getPasswordInPlainText(), $algorithm, $options); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | - public function hash(string $algorithm = PASSWORD_DEFAULT, array $options = []): string |
|
| 96 | + public function hash(string $algorithm = PASSWORD_DEFAULT, array $options = [ ]): string |
|
| 97 | 97 | { |
| 98 | 98 | if (0 < version_compare(PHP_VERSION, '7.4.0')) { |
| 99 | 99 | $algorithm = (int) $algorithm; |