SymfonyMailer.php triggers deprecation notice in PHP 8.4

Created on 6 April 2025, 6 days ago

Problem/Motivation

Deprecated: Drupal\symfony_mailer_lite\Plugin\Mail\SymfonyMailer::__construct(): Implicitly marking parameter $cssOptimizer as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/symfony_mailer_lite/src/Plugin/Mail/SymfonyMailer.php on line 150

Deprecated: Drupal\easy_email\EasyEmailStorage::__construct(): Implicitly marking parameter $memory_cache as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/easy_email/src/EasyEmailStorage.php on line 61

Deprecated: Drupal\easy_email\EasyEmailStorage::__construct(): Implicitly marking parameter $entity_type_bundle_info as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/easy_email/src/EasyEmailStorage.php on line 61

Deprecated: Drupal\easy_email\EasyEmailStorage::__construct(): Implicitly marking parameter $entity_type_manager as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/easy_email/src/EasyEmailStorage.php on line 61

Deprecated: Drupal\easy_email\EasyEmailStorage::__construct(): Implicitly marking parameter $event_dispatcher as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/easy_email/src/EasyEmailStorage.php on line 61

Steps to reproduce

Install the module and visit the `admin/reports/status` page.

Proposed resolution

Add a nullable type hint to the constuctor call for the AssetOptimizerInterface class in the SymfonyMailer class.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇦🇺Australia jaydee1818 Melbourne

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