Bug fix, bumped to version 2.0.4

This commit is contained in:
netkas 2024-12-04 00:26:03 -05:00
parent e927c7a8ec
commit 359afdcbe0
3 changed files with 10 additions and 2 deletions

View file

@ -208,7 +208,10 @@ class ConsoleLogging implements LogHandlerInterface
print('Stack Trace:' . PHP_EOL);
foreach($trace as $item)
{
print( ' - ' . self::color($item['file'], ConsoleColors::RED) . ':' . $item['line'] . PHP_EOL);
if(isset($item['file']) && isset($item['line']))
{
print( ' - ' . self::color($item['file'], ConsoleColors::RED) . ':' . $item['line'] . PHP_EOL);
}
}
}