Skip to content

Commit 740cb2d

Browse files
committed
Debug without die.
1 parent acb1d13 commit 740cb2d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/helper.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ function dd()
88
die();
99
}
1010
}
11+
12+
if (!function_exists('d')) {
13+
function d()
14+
{
15+
$args = func_get_args();
16+
call_user_func_array('dump', $args);
17+
}
18+
}

0 commit comments

Comments
 (0)