Skip to content

Instantly share code, notes, and snippets.

@ahuggins
Last active April 16, 2016 00:26
Show Gist options
  • Select an option

  • Save ahuggins/32f83ec08491045c5a83deee501484f2 to your computer and use it in GitHub Desktop.

Select an option

Save ahuggins/32f83ec08491045c5a83deee501484f2 to your computer and use it in GitHub Desktop.
<?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