diff --git a/src/Illuminate/Support/Collection.php b/src/Illuminate/Support/Collection.php index 50dc627d32c5..c3b2fbd93a79 100644 --- a/src/Illuminate/Support/Collection.php +++ b/src/Illuminate/Support/Collection.php @@ -11,9 +11,9 @@ use CachingIterator; use JsonSerializable; use IteratorAggregate; -use Illuminate\Support\Debug\Dumper; use Illuminate\Support\Traits\Macroable; use Illuminate\Contracts\Support\Jsonable; +use Symfony\Component\VarDumper\VarDumper; use Illuminate\Contracts\Support\Arrayable; /** @@ -320,7 +320,7 @@ public function dump() (new static(func_get_args())) ->push($this) ->each(function ($item) { - (new Dumper)->dump($item); + VarDumper::dump($item); }); return $this; diff --git a/src/Illuminate/Support/Debug/Dumper.php b/src/Illuminate/Support/Debug/Dumper.php deleted file mode 100644 index 7442343f8097..000000000000 --- a/src/Illuminate/Support/Debug/Dumper.php +++ /dev/null @@ -1,26 +0,0 @@ -dump((new VarCloner)->cloneVar($value)); - } else { - var_dump($value); - } - } -} diff --git a/src/Illuminate/Support/Debug/HtmlDumper.php b/src/Illuminate/Support/Debug/HtmlDumper.php deleted file mode 100644 index 5825ac8dba7c..000000000000 --- a/src/Illuminate/Support/Debug/HtmlDumper.php +++ /dev/null @@ -1,29 +0,0 @@ - 'background-color:#fff; color:#222; line-height:1.2em; font-weight:normal; font:12px Monaco, Consolas, monospace; word-wrap: break-word; white-space: pre-wrap; position:relative; z-index:100000', - 'num' => 'color:#a71d5d', - 'const' => 'color:#795da3', - 'str' => 'color:#df5000', - 'cchr' => 'color:#222', - 'note' => 'color:#a71d5d', - 'ref' => 'color:#a0a0a0', - 'public' => 'color:#795da3', - 'protected' => 'color:#795da3', - 'private' => 'color:#795da3', - 'meta' => 'color:#b729d9', - 'key' => 'color:#df5000', - 'index' => 'color:#a71d5d', - ]; -} diff --git a/src/Illuminate/Support/helpers.php b/src/Illuminate/Support/helpers.php index 0fb3e75f84b4..6f28c148946e 100755 --- a/src/Illuminate/Support/helpers.php +++ b/src/Illuminate/Support/helpers.php @@ -4,7 +4,6 @@ use Illuminate\Support\Str; use Illuminate\Support\Optional; use Illuminate\Support\Collection; -use Illuminate\Support\Debug\Dumper; use Illuminate\Contracts\Support\Htmlable; use Illuminate\Support\HigherOrderTapProxy; @@ -544,23 +543,6 @@ function data_set(&$target, $key, $value, $overwrite = true) } } -if (! function_exists('dd')) { - /** - * Dump the passed variables and end the script. - * - * @param mixed $args - * @return void - */ - function dd(...$args) - { - foreach ($args as $x) { - (new Dumper)->dump($x); - } - - die(1); - } -} - if (! function_exists('e')) { /** * Escape HTML special characters in a string.