CLI support

This commit is contained in:
Alex Tselegidis 2024-02-16 17:08:18 +01:00
parent 5b87d75c10
commit eedcb3b8d9

View file

@ -26,9 +26,9 @@ if (!function_exists('dd')) {
#[NoReturn]
function dd(...$vars): void
{
echo '<pre>';
echo is_cli() ? PHP_EOL : '<pre>';
var_dump($vars);
echo '</pre>';
echo is_cli() ? PHP_EOL : '</pre>';
exit(1);
}