From d6e9f4d3a77a758b5b23fdd117012f132f4df236 Mon Sep 17 00:00:00 2001 From: catch Date: Wed, 15 Feb 2023 12:02:15 +0000 Subject: [PATCH] Issue #3326493 by Patrick R., webflo: Fix inaccurate return types in user module --- core/modules/user/user.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/user/user.module b/core/modules/user/user.module index 84d9fb7851f..791e8bbe464 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -167,7 +167,7 @@ function user_user_presave(UserInterface $account) { * @param string $mail * String with the account's email address. * - * @return object|bool + * @return \Drupal\user\UserInterface|false * A fully-loaded $user object upon successful user load or FALSE if user * cannot be loaded. * @@ -185,7 +185,7 @@ function user_load_by_mail($mail) { * @param string $name * String with the account's user name. * - * @return object|bool + * @return \Drupal\user\UserInterface|false * A fully-loaded $user object upon successful user load or FALSE if user * cannot be loaded. *