mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
debugPrint() 함수에 파라미터를 다수 사용할 수 있도록 개선
`debugPrint($arg1, $arg2, 'content');`
This commit is contained in:
parent
e2cfa524d0
commit
6d2ee8dbea
1 changed files with 7 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue