Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.7] Remove dd() helper #25087

Merged
merged 2 commits into from
Aug 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Illuminate/Support/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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;
Expand Down
26 changes: 0 additions & 26 deletions src/Illuminate/Support/Debug/Dumper.php

This file was deleted.

29 changes: 0 additions & 29 deletions src/Illuminate/Support/Debug/HtmlDumper.php

This file was deleted.

18 changes: 0 additions & 18 deletions src/Illuminate/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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.
Expand Down