Skip to content

Commit

Permalink
Update types for dd()
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Dec 11, 2022
1 parent cf25d93 commit 422e4a6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Resources/functions/dump.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ function dump(mixed $var, mixed ...$moreVars): mixed
}

if (!function_exists('dd')) {
/**
* @return never
*/
function dd(...$vars): void
function dd(mixed ...$vars): never
{
if (!in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && !headers_sent()) {
header('HTTP/1.1 500 Internal Server Error');
Expand Down

0 comments on commit 422e4a6

Please sign in to comment.