From 2ebd6858e6bc66b440d212a5f0f9c160cb59e019 Mon Sep 17 00:00:00 2001 From: Julio J Date: Thu, 18 Apr 2024 11:07:08 -0300 Subject: [PATCH] Use the driver's info function instead of password_get_info() directly (#51112) --- src/Illuminate/Hashing/HashManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Hashing/HashManager.php b/src/Illuminate/Hashing/HashManager.php index 564411e4df54..30c8b0695324 100644 --- a/src/Illuminate/Hashing/HashManager.php +++ b/src/Illuminate/Hashing/HashManager.php @@ -96,7 +96,7 @@ public function needsRehash($hashedValue, array $options = []) */ public function isHashed($value) { - return password_get_info($value)['algo'] !== null; + return $this->driver()->info($value)['algo'] !== null; } /**