From 3ed2148c395e9edb4d42994c83216b2f185bfbd0 Mon Sep 17 00:00:00 2001 From: Jess Archer Date: Tue, 23 Jul 2024 09:29:07 +1000 Subject: [PATCH] Prevent bug emoji on dumpable dd --- 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); } /**