Resolve RedirectSettingsCacheTag::getSubscribedEvents deprecation

Created on 11 January 2024, 12 months ago

Problem/Motivation

When using PHPUnit with SYMFONY_DEPRECATIONS_HELPER the following message is output:

1x: Method "Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()" might add "array" as a native return type declaration in the future. Do the same in implementation "Drupal\redirect\EventSubscriber\RedirectSettingsCacheTag" now to avoid errors or add an explicit @return annotation to suppress this message.

Proposed resolution

Just add a return type

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇦🇺Australia dpi Perth, Australia

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