diff --git a/common/legacy.php b/common/legacy.php index 8477ab284..397fa0d8a 100644 --- a/common/legacy.php +++ b/common/legacy.php @@ -784,11 +784,16 @@ function getEncodeEmailAddress($email): string /** * Add an entry to the debug log. * - * @param mixed $entry Target object to be printed + * @param mixed ...$entry Target object to be printed * @return void */ -function debugPrint($entry = null): void +function debugPrint(...$entry): void { + if (func_num_args() === 1) + { + $entry = $entry[0]; + } + Rhymix\Framework\Debug::addEntry($entry); }