Deprecation Warnings with PHP 8.4

Created on 15 April 2025, 30 days ago

Problem/Motivation

After updating to PHP 8.4, there are a number of deprecation warnings for marking parameters as nullable.

PHP Deprecated:  Drupal\symfony_mailer\Processor\OverrideManager::getInfo(): Implicitly marking parameter $filterId as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/docroot/modules/contrib/symfony_mailer/src/Processor/OverrideManager.php on line 153

Deprecated: Drupal\symfony_mailer\Processor\OverrideManager::getInfo(): Implicitly marking parameter $filterId as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/docroot/modules/contrib/symfony_mailer/src/Processor/OverrideManager.php on line 153
PHP Deprecated:  Drupal\symfony_mailer\Processor\OverrideManagerInterface::getInfo(): Implicitly marking parameter $filterId as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/docroot/modules/contrib/symfony_mailer/src/Processor/OverrideManagerInterface.php on line 62

Deprecated: Drupal\symfony_mailer\Processor\OverrideManagerInterface::getInfo(): Implicitly marking parameter $filterId as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/docroot/modules/contrib/symfony_mailer/src/Processor/OverrideManagerInterface.php on line 62
PHP Deprecated:  Drupal\migrate_tools\Routing\RouteProcessor::processOutbound(): Implicitly marking parameter $bubbleable_metadata as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/docroot/modules/contrib/migrate_tools/src/Routing/RouteProcessor.php on line 26

Deprecated: Drupal\migrate_tools\Routing\RouteProcessor::processOutbound(): Implicitly marking parameter $bubbleable_metadata as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/docroot/modules/contrib/migrate_tools/src/Routing/RouteProcessor.php on line 26

Steps to reproduce

Update to PHP 8.4, then load a screen or use a Drush command

Proposed resolution

Update the code as recommended from https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullabl...

πŸ› Bug report
Status

Active

Version

1.5

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States themarkahrens

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

Comments & Activities

Production build 0.71.5 2024