From e52a3372a0c535470c9e3f225a697e67b5800e53 Mon Sep 17 00:00:00 2001 From: Michiel de Jong Date: Mon, 8 Jan 2024 15:15:35 +0100 Subject: [PATCH] correct variable name It seems the type-hinting comment should be about the `$dispatcher` variable on the line below it. Signed-off-by: Michiel de Jong --- developer_manual/basics/events.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/developer_manual/basics/events.rst b/developer_manual/basics/events.rst index 5c0965b5d..4b1f7b211 100644 --- a/developer_manual/basics/events.rst +++ b/developer_manual/basics/events.rst @@ -99,7 +99,7 @@ You can use simple callback to react on events. They will receive the event obje class Application extends App { public function __construct() { parent::__construct('myapp'); - /* @var IEventDispatcher $eventDispatcher */ + /* @var IEventDispatcher $dispatcher */ $dispatcher = $this->getContainer()->query(IEventDispatcher::class); $dispatcher->addListener(AddEvent::class, function(AddEvent $event) { // ...