Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f95eb66

Browse files
Merge 4.2 into 4.3 (#2915)
2 parents 6dfa13f + 9318682 commit f95eb66

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.
88
* Fix `artisan query:retry` command by @GromNaN in [#2838](https://github.com/mongodb/laravel-mongodb/pull/2838)
99
* Add `mongodb` cache and lock drivers by @GromNaN in [#2877](https://github.com/mongodb/laravel-mongodb/pull/2877)
1010

11+
## [4.2.2] - 2024年04月25日
12+
13+
* Add return types to `FindAndModifyCommandSubscriber`, used by `firstOrCreate` by @wivaku in [#2913](https://github.com/mongodb/laravel-mongodb/pull/2913)
14+
1115
## [4.2.1] - 2024年04月25日
1216

1317
* Set timestamps when using `Model::createOrFirst()` by @GromNaN in [#2905](https://github.com/mongodb/laravel-mongodb/pull/2905)

‎src/Internal/FindAndModifyCommandSubscriber.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ final class FindAndModifyCommandSubscriber implements CommandSubscriber
1919
{
2020
public bool $created;
2121

22-
public function commandFailed(CommandFailedEvent $event)
22+
public function commandFailed(CommandFailedEvent $event): void
2323
{
2424
}
2525

26-
public function commandStarted(CommandStartedEvent $event)
26+
public function commandStarted(CommandStartedEvent $event): void
2727
{
2828
}
2929

30-
public function commandSucceeded(CommandSucceededEvent $event)
30+
public function commandSucceeded(CommandSucceededEvent $event): void
3131
{
3232
$this->created = ! $event->getReply()->lastErrorObject->updatedExisting;
3333
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /