Created
September 18, 2020 10:06
-
-
Save julienbornstein/92e314d3e6ee57f7f336d1ade724425e to your computer and use it in GitHub Desktop.
symfony/var-dumper dd() function for old versions
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 | |
// 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