From 4fcf4a6a182860659c3448071eab2bfb840a54d9 Mon Sep 17 00:00:00 2001 From: Jess Archer Date: Wed, 24 Jul 2024 00:08:10 +1000 Subject: [PATCH] Prevent bug emoji on dumpable dd (#52234) --- src/Illuminate/Collections/Traits/EnumeratesValues.php | 4 +--- src/Illuminate/Support/Traits/Dumpable.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Illuminate/Collections/Traits/EnumeratesValues.php b/src/Illuminate/Collections/Traits/EnumeratesValues.php index 2ea0880c2398..78690232970b 100644 --- a/src/Illuminate/Collections/Traits/EnumeratesValues.php +++ b/src/Illuminate/Collections/Traits/EnumeratesValues.php @@ -229,9 +229,7 @@ public function some($key, $operator = null, $value = null) */ public function dd(...$args) { - $this->dump(...$args); - - dd(); + dd($this->all(), ...$args); } /** diff --git a/src/Illuminate/Support/Traits/Dumpable.php b/src/Illuminate/Support/Traits/Dumpable.php index 448b5ba62c17..44ad14dfc393 100644 --- a/src/Illuminate/Support/Traits/Dumpable.php +++ b/src/Illuminate/Support/Traits/Dumpable.php @@ -12,9 +12,7 @@ trait Dumpable */ public function dd(...$args) { - $this->dump(...$args); - - dd(); + dd($this, ...$args); } /**