File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 44
55namespace Codefy \Framework \Support ;
66
7+ use Qubus \Exception \Exception ;
8+
79use function defined ;
810use function password_hash ;
911use 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 {
You can’t perform that action at this time.
0 commit comments