Skip to content

Commit

Permalink
PHPORM-241 Add return type to CommandSubscriber (#3158)
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN authored Sep 17, 2024
1 parent 98474c3 commit b51aeff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [5.0.2] - 2024-09-17

* Fix missing return types in CommandSubscriber by @GromNaN in [#3158](https://github.com/mongodb/laravel-mongodb/pull/3158)

## [5.0.1] - 2024-09-13

* Restore support for Laravel 10 by @GromNaN in [#3148](https://github.com/mongodb/laravel-mongodb/pull/3148)
Expand Down
6 changes: 3 additions & 3 deletions src/CommandSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ public function __construct(private Connection $connection)
{
}

public function commandStarted(CommandStartedEvent $event)
public function commandStarted(CommandStartedEvent $event): void
{
$this->commands[$event->getOperationId()] = $event;
}

public function commandFailed(CommandFailedEvent $event)
public function commandFailed(CommandFailedEvent $event): void
{
$this->logQuery($event);
}

public function commandSucceeded(CommandSucceededEvent $event)
public function commandSucceeded(CommandSucceededEvent $event): void
{
$this->logQuery($event);
}
Expand Down

0 comments on commit b51aeff

Please sign in to comment.