Method addMessage cannot be called statically

Created on 16 May 2024, 11 months ago
Updated 30 May 2024, 10 months ago

Problem/Motivation

Happening this error:

Error: Cannot call abstract method Drupal\Core\Messenger\MessengerInterface::addMessage() in restrict_password_change_mail_alter() (line 88 of .../restrict_password_change/restrict_password_change.module).

Steps to reproduce

Occurs when request the reset password via emails

Proposed resolution

Replace the unused Drupal\Core\Messenger\MessengerInterface interface with `\Drupal::messenger()`.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇵🇪Peru heilop

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024