Deprecated php errors when Email recipient address is empty

Created on 27 June 2024, 5 months ago
Updated 22 August 2024, 3 months ago

Problem/Motivation

When I enable the module and do not change the default configs, I get deprecated php errors when the module sends error/exception emails:

Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\exception_mailer\Subscribers\ExceptionEventSubscriber->getConfigFormEmailAdress() (line 224 of .../exception_mailer/src/Subscribers/ExceptionEventSubscriber.php)

Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\exception_mailer\Logger\ErrorLog->getConfigFormEmailAdress() (line 227 of .../exception_mailer/src/Logger/ErrorLog.php)

Proposed resolution

Add verification for the existence of Email recipient address.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇷🇴Romania Kosa Ilma

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

Comments & Activities

Production build 0.71.5 2024