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',