Skip to content

Commit be87f14

Browse files
committed
troubleshoot php 8.0 issue
1 parent 27bb23f commit be87f14

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/ErrorHandler/ErrorHandler.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,16 @@ public function handleError($errType, $errMsg, $file, $line, $vars = array())
194194
{
195195
$error = $this->cfg['errorFactory']($this, $errType, $errMsg, $file, $line, $vars);
196196
$this->data['uncaughtException'] = null;
197+
if (true) {
198+
\var_dump(array(
199+
// 'type' => \sprintf('%s (%d)', $error['typeStr'], $error['type']),
200+
'errMsg' => $error['message'],
201+
'file' => $error['file'],
202+
'line' => $error['line'],
203+
// 'evalLine' => $error['evalLine'],
204+
));
205+
// var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS));
206+
}
197207
$this->toStringCheck($error);
198208
if (!$this->isErrTypeHandled($errType)) {
199209
// not handled

0 commit comments

Comments
 (0)