modify plugin name

This commit is contained in:
2022-06-22 19:05:08 +08:00
parent 0b70d9109c
commit b2dfedfe63
+1 -1
View File
@@ -199,7 +199,7 @@ class Logger implements LoggerInterface
if ($context instanceof \Throwable) {
$context = ['file' => $context->getFile(), 'line' => $context->getLine()];
}
if (is_array($context) && $context[0] instanceof \Throwable) {
if (is_array($context) && isset($context[0]) && $context[0] instanceof \Throwable) {
$context = ['file' => $context[0]->getFile(), 'line' => $context[0]->getLine()];
}
return print_r($context, true) . PHP_EOL;