[VarDumper] Allow dd() to be called without arguments
This commit is contained in:
parent
a1ca55beea
commit
a73dfadc18
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user