Skip to content

Commit a516427

Browse files
authored
PHPORM-241 Add return type to CommandSubscriber (#3157)
1 parent 06c4a3e commit a516427

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [5.0.2] - next
5+
6+
* Fix missing return types in CommandSubscriber by @GromNaN in [#3157](https://github.com/mongodb/laravel-mongodb/pull/3157)
7+
48
## [5.0.1] - 2024-09-13
59

610
* Restore support for Laravel 10 by @GromNaN in [#3148](https://github.com/mongodb/laravel-mongodb/pull/3148)

src/CommandSubscriber.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ public function __construct(private Connection $connection)
2121
{
2222
}
2323

24-
public function commandStarted(CommandStartedEvent $event)
24+
public function commandStarted(CommandStartedEvent $event): void
2525
{
2626
$this->commands[$event->getOperationId()] = $event;
2727
}
2828

29-
public function commandFailed(CommandFailedEvent $event)
29+
public function commandFailed(CommandFailedEvent $event): void
3030
{
3131
$this->logQuery($event);
3232
}
3333

34-
public function commandSucceeded(CommandSucceededEvent $event)
34+
public function commandSucceeded(CommandSucceededEvent $event): void
3535
{
3636
$this->logQuery($event);
3737
}

0 commit comments

Comments
 (0)