Skip to content

Commit 26a6824

Browse files
authored
PHPORM-151 Update signature of Query\Builder::dump to match parent Dumpable (#2730)
Laravel 11 breaking change laravel/framework@4326fc3#diff-2ed94a0ea151404a12f3c0d52ae9fb5742348578ec4a8ff79d079fa598ff145dR3878
1 parent 0cef5dc commit 26a6824

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.
33

44
## [unreleased]
55

6-
* Fix `Query\Builder::dump` and `dd` methods to dump the MongoDB query by @GromNaN in [#2727](https://github.com/mongodb/laravel-mongodb/pull/2727)
6+
* 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)
77

88
## [4.1.2]
99

src/Query/Builder.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,14 @@ public function dd()
267267
/**
268268
* Dump the current MongoDB query
269269
*
270+
* @param mixed ...$args
271+
*
270272
* @return $this
271273
*/
272274
#[Override]
273-
public function dump()
275+
public function dump(mixed ...$args)
274276
{
275-
dump($this->toMql());
277+
dump($this->toMql(), ...$args);
276278

277279
return $this;
278280
}

0 commit comments

Comments
 (0)