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

Created on 1 February 2024, 10 months ago
Updated 10 August 2024, 4 months 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

Closed: duplicate

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