Skip to content

Commit

Permalink
[5.5] Added workaround for dd function correct output in the Chrome's…
Browse files Browse the repository at this point in the history
… network preview window (#22581)

* Workaround for dd render in browser preview window

* cs fix
  • Loading branch information
linaspasv authored and taylorotwell committed Dec 31, 2017
1 parent d1fc278 commit b14697f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,8 @@ function data_set(&$target, $key, $value, $overwrite = true)
*/
function dd(...$args)
{
http_response_code(500);

foreach ($args as $x) {
(new Dumper)->dump($x);
}
Expand Down

0 comments on commit b14697f

Please sign in to comment.