Skip to content
Snippets Groups Projects
Commit 72fe92cf authored by Jonathan Smith's avatar Jonathan Smith
Browse files

Issue #3465213 by jonathan1055: Add 'array' return type in getSubscribedEvents()

parent 28902d0e
No related branches found
No related tags found
1 merge request!163#3465213 Event subscriber return type [8.x-1.x]
Pipeline #252778 passed
......@@ -27,7 +27,7 @@ class EventSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
public static function getSubscribedEvents(): array {
// Initialize the array to avoid 'variable is undefined' phpcs error.
$events = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment