Skip to content

Commit

Permalink
Add D function
Browse files Browse the repository at this point in the history
  • Loading branch information
rdehnhardt committed Aug 3, 2018
1 parent 78b5421 commit 90a0ae5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function dd()
}
}


if (!function_exists('dump')) {
function dump()
{
Expand All @@ -20,3 +21,12 @@ function dump()
}, func_get_args());
}
}

if (!function_exists('d')) {
function d()
{
array_map(function ($x) {
(new Rdehnhardt\Debug\Dumper)->dump($x);
}, func_get_args());
}
}

1 comment on commit 90a0ae5

@rafamancan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! The D function is the most important for me. Thanks for bring it back.

Please sign in to comment.