diff --git a/CHANGELOG.md b/CHANGELOG.md index 83be95b8e..d2f745851 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file. ## [unreleased] -* Fix `Query\Builder::dump` and `dd` methods to dump the MongoDB query by @GromNaN in [#2727](https://github.com/mongodb/laravel-mongodb/pull/2727) +* Fix `Query\Builder::dump` and `dd` methods to dump the MongoDB query by @GromNaN in [#2727](https://github.com/mongodb/laravel-mongodb/pull/2727) and [#2730](https://github.com/mongodb/laravel-mongodb/pull/2730) ## [4.1.2] diff --git a/src/Query/Builder.php b/src/Query/Builder.php index 6454effbc..98e6640df 100644 --- a/src/Query/Builder.php +++ b/src/Query/Builder.php @@ -267,12 +267,14 @@ public function dd() /** * Dump the current MongoDB query * + * @param mixed ...$args + * * @return $this */ #[Override] - public function dump() + public function dump(mixed ...$args) { - dump($this->toMql()); + dump($this->toMql(), ...$args); return $this; }