Method "Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()" might add "array" as a native return type declaration in the future.

Created on 1 February 2024, 5 months ago
Updated 30 May 2024, 28 days ago

Problem/Motivation

During the execution of the module test, a deprecated message was encountered, specifically related to the getSubscribedEvents() method within the Symfony\Component\EventDispatcher\EventSubscriberInterface. This warning suggests that "array" might become a native return type declaration in the future.

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\RouteNormalizerRequestSubscriber" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in RouteNormalizerRequestSubscriberTest::testSkipIfFlagNotEnabled from Drupal\Tests\redirect\Unit
📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India sumit-k

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