Skip to content

Commit

Permalink
correct variable name
Browse files Browse the repository at this point in the history
It seems the type-hinting comment should be about the `$dispatcher` variable on the line below it.

Signed-off-by: Michiel de Jong <[email protected]>
  • Loading branch information
michielbdejong authored Jan 8, 2024
1 parent f208af5 commit 91192fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion developer_manual/basics/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
// ...
Expand Down

0 comments on commit 91192fc

Please sign in to comment.