Fix inaccurate return types in user module

Created on 12 December 2022, over 1 year ago
Updated 15 February 2023, over 1 year ago

Problem/Motivation

The return types of the user_load_by_mail() and user_load_by_name() functions are currently "object|bool" while the description correctly states that both functions return a fully-loaded user object upon successful user load or FALSE if user cannot be loaded.

Proposed resolution

Change the return type to "\Drupal\user\UserInterface|bool".

πŸ“Œ Task
Status

Fixed

Version

9.5

Component
User moduleΒ  β†’

Last updated 1 day ago

Created by

πŸ‡©πŸ‡ͺGermany Patrick R.

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024