var_dump() 함수와 인터페이스 맞춤

This commit is contained in:
kkigomi 2024-01-14 19:20:46 +09:00
parent f5300456a2
commit d54c05a096
No known key found for this signature in database
GPG key ID: 99CF0633E78395B9

View file

@ -784,18 +784,15 @@ function getEncodeEmailAddress($email): string
/**
* Add an entry to the debug log.
*
* @param mixed ...$entry Target object to be printed
* @param mixed $value The expression to dump.
* @param mixed $values Further expressions to dump.
* @return void
*/
function debugPrint(...$entry): void
function debugPrint($value, ...$values): void
{
if (count($entry) === 1)
{
Rhymix\Framework\Debug::addEntry($entry[0]);
return;
}
Rhymix\Framework\Debug::addEntry($value);
foreach ($entry as $v)
foreach ($values as $v)
{
Rhymix\Framework\Debug::addEntry($v);
}