Fix warning in PHP8.0

This commit is contained in:
BJRambo 2021-07-15 03:26:49 +09:00
parent ce694e179c
commit c7f84a178d
4 changed files with 9 additions and 5 deletions

View file

@ -270,7 +270,7 @@ class Debug
// Get the backtrace.
$backtrace = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
if (count($backtrace) > 1 && $backtrace[1]['function'] === 'debugPrint' && !$backtrace[1]['class'])
if (count($backtrace) > 1 && $backtrace[1]['function'] === 'debugPrint' && !isset($backtrace[1]['class']))
{
array_shift($backtrace);
}