mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-26 03:01:23 +02:00
@@ -70,7 +70,7 @@ class MessagesCollector extends AbstractLogger implements DataCollectorInterface
|
|||||||
$stacktrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 5);
|
$stacktrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 5);
|
||||||
$stackItem = $stacktrace[0];
|
$stackItem = $stacktrace[0];
|
||||||
foreach ($stacktrace as $trace) {
|
foreach ($stacktrace as $trace) {
|
||||||
if (strpos($trace['file'], '/vendor/') !== false) {
|
if (!isset($trace['file']) || strpos($trace['file'], '/vendor/') !== false) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ class MessagesCollector extends AbstractLogger implements DataCollectorInterface
|
|||||||
'is_string' => $isString,
|
'is_string' => $isString,
|
||||||
'label' => $label,
|
'label' => $label,
|
||||||
'time' => microtime(true),
|
'time' => microtime(true),
|
||||||
'xdebug_link' => $stackItem ? $this->getXdebugLink($stackItem['file'], $stackItem['line']) : null,
|
'xdebug_link' => $stackItem ? $this->getXdebugLink($stackItem['file'], $stackItem['line'] ?? null) : null,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user