Use AccountProxyInterface instead of AccountInterface

Created on 6 July 2023, 12 months ago
Updated 30 January 2024, 5 months ago

Problem/Motivation

The currentUser method, in ControllerBase class, provides the return type \Drupal\Core\Session\AccountInterface rather then the expected \Drupal\Core\Session\AccountProxyInterface

Proposed resolution

Correct the return type hint, even for the currentUser property

Remaining tasks

Update the ControllerBase class comments related to currentUser property and currentUser method.
Update all accessors of currentUser method.

🐛 Bug report
Status

Needs work

Version

10.1

Component
Routing 

Last updated about 19 hours ago

Created by

🇮🇹Italy gigiabba

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024