From 0c6f4740dfa448695b659aae521c6e138c3cf69d Mon Sep 17 00:00:00 2001 From: Roberto Aguilar Date: Wed, 18 Apr 2018 20:49:33 -0500 Subject: [PATCH] Remove no longer required status code in dd helper (#23930) Chrome 65 has fixed the bug that required this workaround https://bugs.chromium.org/p/chromium/issues/detail?id=785050 --- src/Illuminate/Support/Collection.php | 2 -- src/Illuminate/Support/helpers.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/Illuminate/Support/Collection.php b/src/Illuminate/Support/Collection.php index 154b64099c38..5a4b95e33af6 100644 --- a/src/Illuminate/Support/Collection.php +++ b/src/Illuminate/Support/Collection.php @@ -272,8 +272,6 @@ public function crossJoin(...$lists) */ public function dd(...$args) { - http_response_code(500); - call_user_func_array([$this, 'dump'], $args); die(1); diff --git a/src/Illuminate/Support/helpers.php b/src/Illuminate/Support/helpers.php index 16a596f57982..e10e30af595b 100755 --- a/src/Illuminate/Support/helpers.php +++ b/src/Illuminate/Support/helpers.php @@ -553,8 +553,6 @@ function data_set(&$target, $key, $value, $overwrite = true) */ function dd(...$args) { - http_response_code(500); - foreach ($args as $x) { (new Dumper)->dump($x); }