From 3f133e9e90b7398a845e61a8de2b9abc0a22fc5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Tue, 20 Feb 2024 14:59:58 +0100 Subject: [PATCH] PHPORM-151 Update signature of Query\Builder::dump to match parent Dumpable Laravel 11 breaking change --- CHANGELOG.md | 2 +- src/Query/Builder.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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; }