Skip to content

Commit 547ca64

Browse files
committed
Updated exception.
Signed-off-by: Joshua Parker <[email protected]>
1 parent a563aa1 commit 547ca64

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Support/Password.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace Codefy\Framework\Support;
66

7+
use Qubus\Exception\Exception;
8+
79
use function defined;
810
use function password_hash;
911
use function password_verify;
@@ -18,6 +20,7 @@ final class Password
1820
* Algorithm to use when hashing the password (i.e. PASSWORD_DEFAULT, PASSWORD_ARGON2ID).
1921
*
2022
* @return string Password algorithm.
23+
* @throws Exception
2124
*/
2225
private static function algorithm(): string
2326
{
@@ -38,6 +41,7 @@ private static function algorithm(): string
3841
* An associative array containing options.
3942
*
4043
* @return array Array of options.
44+
* @throws Exception
4145
*/
4246
private static function options(): array
4347
{
@@ -57,6 +61,7 @@ private static function options(): array
5761
*
5862
* @param string $password Plain text password
5963
* @return string Hashed password.
64+
* @throws Exception
6065
*/
6166
public static function hash(string $password): string
6267
{

0 commit comments

Comments
 (0)