From 8fa6aabe027ed4c7f2f6b3b7d307b27c1178ed3a Mon Sep 17 00:00:00 2001 From: Aselsan Date: Mon, 26 Aug 2024 13:41:50 +0700 Subject: [PATCH] converts to data type string --- src/Authentication/Passwords/NothingPersonalValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Authentication/Passwords/NothingPersonalValidator.php b/src/Authentication/Passwords/NothingPersonalValidator.php index 8d7f6d07d..d97b962b1 100644 --- a/src/Authentication/Passwords/NothingPersonalValidator.php +++ b/src/Authentication/Passwords/NothingPersonalValidator.php @@ -95,7 +95,7 @@ protected function isNotPersonal(string $password, ?User $user): bool foreach ($personalFields as $value) { if (! empty($user->{$value})) { - $needles[] = strtolower($user->{$value}); + $needles[] = strtolower((string) $user->{$value}); } }