Skip to content

Commit 4fcf4a6

Browse files
authored
Prevent bug emoji on dumpable dd (#52234)
1 parent 426d0bc commit 4fcf4a6

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Illuminate/Collections/Traits/EnumeratesValues.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,7 @@ public function some($key, $operator = null, $value = null)
229229
*/
230230
public function dd(...$args)
231231
{
232-
$this->dump(...$args);
233-
234-
dd();
232+
dd($this->all(), ...$args);
235233
}
236234

237235
/**

src/Illuminate/Support/Traits/Dumpable.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ trait Dumpable
1212
*/
1313
public function dd(...$args)
1414
{
15-
$this->dump(...$args);
16-
17-
dd();
15+
dd($this, ...$args);
1816
}
1917

2018
/**

0 commit comments

Comments
 (0)