Last active
April 16, 2016 00:26
-
-
Save ahuggins/32f83ec08491045c5a83deee501484f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Taken from Illuminate\Support\helpers.php | |
if (! function_exists('dd')) { | |
/** | |
* Dump the passed variables and end the script. | |
* | |
* @param mixed | |
* @return void | |
*/ | |
function dd() | |
{ | |
array_map(function ($x) { | |
(new Dumper)->dump($x); | |
}, func_get_args()); | |
die(1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment