Resolve RedirectSettingsCacheTag::getSubscribedEvents deprecation

Created on 11 January 2024, 6 months ago
Updated 4 April 2024, 3 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

Closed: duplicate

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.69.0 2024