From 7140cd9243a5392c7799e78ff3f6880cd30f8a83 Mon Sep 17 00:00:00 2001 From: seb-jean Date: Mon, 6 May 2024 20:12:35 +0200 Subject: [PATCH] Update UserClassBuilder.php --- src/Security/UserClassBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Security/UserClassBuilder.php b/src/Security/UserClassBuilder.php index 2617803689..a7a44afeb5 100644 --- a/src/Security/UserClassBuilder.php +++ b/src/Security/UserClassBuilder.php @@ -216,7 +216,7 @@ private function addGetPassword(ClassSourceManipulator $manipulator, UserClassCo $manipulator->addGetter( 'password', - 'string', + '?string', true ); @@ -231,7 +231,7 @@ private function addGetPassword(ClassSourceManipulator $manipulator, UserClassCo $manipulator->addAccessorMethod( 'password', 'getPassword', - 'string', + '?string', false, [ '@see PasswordAuthenticatedUserInterface',