mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix potential type error in Debug::translateFilename()
This commit is contained in:
parent
6215e57762
commit
f15cdecbe1
1 changed files with 2 additions and 2 deletions
|
|
@ -625,7 +625,7 @@ class Debug
|
|||
}
|
||||
else
|
||||
{
|
||||
$caller_errfile = self::translateFilename($trace['file']);
|
||||
$caller_errfile = self::translateFilename($trace['file'] ?? '');
|
||||
$caller_errline = $trace['line'];
|
||||
}
|
||||
}
|
||||
|
|
@ -667,7 +667,7 @@ class Debug
|
|||
}
|
||||
|
||||
// Find out the file where the error really occurred.
|
||||
$errinfo['file'] = self::translateFilename($errinfo['file']);
|
||||
$errinfo['file'] = self::translateFilename($errinfo['file'] ?? '');
|
||||
|
||||
// Add the entry to the error log.
|
||||
$message = sprintf('%s in %s on line %d', $errinfo['message'], $errinfo['file'], intval($errinfo['line']));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue