Add dd function
This commit is contained in:
parent
6c017505f5
commit
3b96de3da1
|
@ -22,7 +22,8 @@
|
|||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^2.15",
|
||||
"phpunit/phpunit": "^7.5"
|
||||
"phpunit/phpunit": "^7.5",
|
||||
"symfony/var-dumper": "^4.3"
|
||||
},
|
||||
"autoload": {
|
||||
"files": ["src/helpers.php"]
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
<?php
|
||||
|
||||
if (!function_exists('dd')) {
|
||||
function dd(): void
|
||||
{
|
||||
dump(func_get_args());
|
||||
die;
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('env')) {
|
||||
function env(string $name, ?string $default = null): ?string
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue