Skip to content
This repository has been archived by the owner on Dec 17, 2022. It is now read-only.

Commit

Permalink
fix null deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Nov 26, 2022
1 parent a5f847a commit 9c65ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Util/PasswordUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function hashPassword(UserInterface $user)
{
$plainPassword = $user->getPlainPassword();

if ($plainPassword || 0 === strlen($plainPassword)) {
if ($plainPassword === null || 0 === strlen($plainPassword)) {
return;
}

Expand Down

0 comments on commit 9c65ada

Please sign in to comment.