[VarDumper] Allow dd() to be called without arguments

This commit is contained in:
Sjors Ottjes 2018-08-30 14:39:37 +02:00 committed by Nicolas Grekas
parent a1ca55beea
commit a73dfadc18

View File

@ -32,14 +32,12 @@ if (!function_exists('dump')) {
}
if (!function_exists('dd')) {
function dd($var, ...$moreVars)
function dd(...$vars)
{
VarDumper::dump($var);
foreach ($moreVars as $v) {
foreach ($vars as $v) {
VarDumper::dump($v);
}
exit(1);
die(1);
}
}