From b51aeff76c065839da25c56652428421d1b54cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Tue, 17 Sep 2024 13:05:10 +0200 Subject: [PATCH] PHPORM-241 Add return type to CommandSubscriber (#3158) --- CHANGELOG.md | 4 ++++ src/CommandSubscriber.php | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32f7b856b..bd353702e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/CommandSubscriber.php b/src/CommandSubscriber.php index ef282bcac..569c7c909 100644 --- a/src/CommandSubscriber.php +++ b/src/CommandSubscriber.php @@ -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); }