Skip to content

Instantly share code, notes, and snippets.

@radicalloop
Last active June 13, 2018 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radicalloop/b9c4d61759ade3c25084f490cf9d0be7 to your computer and use it in GitHub Desktop.
Save radicalloop/b9c4d61759ade3c25084f490cf9d0be7 to your computer and use it in GitHub Desktop.
helper for _dd function
<?php
if (!function_exists('_dd')) {
function _dd(...$args)
{
if (!headers_sent()) {
header('HTTP/1.1 500 Internal Server Error');
}
call_user_func_array('dd', $args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment