Skip to content

Commit

Permalink
Update AbstractHook.php
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Aug 15, 2023
1 parent 501e6f3 commit 83d6177
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/AbstractHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ abstract class AbstractHook

public static function dump(): void
{
array_map(static fn ($arg) => is_object($arg) ? var_export($arg) : var_dump($arg), func_get_args());
array_map(static fn ($arg) => match (true) {
is_array($arg) => self::dump($arg),
is_object($arg) => var_export($arg),
default => var_dump($arg),
}, func_get_args());
die(42);
}

Expand Down

0 comments on commit 83d6177

Please sign in to comment.