Skip to content

Instantly share code, notes, and snippets.

@julienbornstein
Created September 18, 2020 10:06
Show Gist options
  • Save julienbornstein/92e314d3e6ee57f7f336d1ade724425e to your computer and use it in GitHub Desktop.
Save julienbornstein/92e314d3e6ee57f7f336d1ade724425e to your computer and use it in GitHub Desktop.
symfony/var-dumper dd() function for old versions
<?php
// in app_dev.php
if (!function_exists('dd')) {
function dd(...$vars)
{
foreach ($vars as $v) {
VarDumper::dump($v);
}
exit(1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment