From 9c65adad2ef8bd00d9cec66e4c28e146326e0a05 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Sat, 26 Nov 2022 01:02:27 +0100 Subject: [PATCH] fix null deprecation --- Util/PasswordUpdater.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Util/PasswordUpdater.php b/Util/PasswordUpdater.php index 095ce2b..2956849 100644 --- a/Util/PasswordUpdater.php +++ b/Util/PasswordUpdater.php @@ -33,7 +33,7 @@ public function hashPassword(UserInterface $user) { $plainPassword = $user->getPlainPassword(); - if ($plainPassword || 0 === strlen($plainPassword)) { + if ($plainPassword === null || 0 === strlen($plainPassword)) { return; }