From 1b8d52d9333c522ca4e94d66fb1d337a5dfac0d0 Mon Sep 17 00:00:00 2001 From: Fabien Salathe Date: Tue, 22 Mar 2022 10:43:35 +0100 Subject: [PATCH] Use a better name than "class Foo" It took me a while to figure out what represent `class Foo` --- components/event_dispatcher.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/event_dispatcher.rst b/components/event_dispatcher.rst index 0331c3320be..a0fc45ed78e 100644 --- a/components/event_dispatcher.rst +++ b/components/event_dispatcher.rst @@ -499,9 +499,9 @@ is dispatched, are passed as arguments to the listener:: use Symfony\Contracts\EventDispatcher\Event; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; - class Foo + class MySubscriber { - public function myEventListener(Event $event, $eventName, EventDispatcherInterface $dispatcher) + public function myEventListener(Event $event, string $eventName, EventDispatcherInterface $dispatcher) { // ... do something with the event name }