Skip to content

Commit

Permalink
fix: improved debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Oct 9, 2022
1 parent e6ac674 commit ac3d7e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpmyfaq/src/phpMyFAQ/Utils.php
Expand Up @@ -237,10 +237,10 @@ public static function debug(string $string): string
$debug = debug_backtrace();
$ret = '';
if (isset($debug[2]['class'])) {
$ret = $debug[2]['file'] . ':<br>';
$ret = $debug[2]['file'] . ': ';
$ret .= $debug[2]['class'] . $debug[1]['type'];
$ret .= $debug[2]['function'] . '() in line ' . $debug[2]['line'];
$ret .= ': <code>' . $string . "</code><br>\n";
$ret .= ':<br><code>' . $string . "</code><br>\n";
}
}

Expand Down

0 comments on commit ac3d7e0

Please sign in to comment.