Skip to content

Commit

Permalink
Update TraceEntry.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed May 17, 2022
1 parent dff7bf5 commit f1ffa49
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/webfiori/error/TraceEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ public function __construct(array $debugTraceEntry) {
*/
public function __toString() {
$line = $this->getLine();
$retVal = 'At class '.$this->getClass();
$class = $this->getClass();

if ($class == 'X') {
$retVal = 'NO CLASS';
} else {
$retVal = 'At class '.$this->getClass();
}

if ($line != 'X') {
$retVal .= ' line '.$line;
Expand Down

0 comments on commit f1ffa49

Please sign in to comment.