Add return type to implementations of EventSubscriberInterface::getSubscribedEvents()

Created on 27 March 2025, about 1 month ago

Problem/Motivation

Running phpunit tests may give this self deprecation notice:

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

Proposed resolution

Add the return type.

Remaining tasks

Implement.

User interface changes

None.

API changes

None.

Data model changes

None.

📌 Task
Status

Active

Version

4.0

Component

Flag core

Created by

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

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