Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5a3f8d6

Browse filesBrowse files
committed
Fixed!
1 parent 39405a1 commit 5a3f8d6
Copy full SHA for 5a3f8d6

File tree

1 file changed

+4
-1
lines changed
Filter options

1 file changed

+4
-1
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Command/EventDispatcherDebugCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/EventDispatcherDebugCommand.php
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8484
$io->getErrorStyle()->warning(sprintf('The event "%s" does not have any registered listeners.', $event));
8585

8686
return 0;
87+
} elseif (1 === \count($events)) {
88+
$options = ['event' => $events[array_key_first($events)]];
89+
} else {
90+
$options = ['events' => $events];
8791
}
88-
$options = ['events' => $events];
8992
}
9093
}
9194

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.