when timeline is available and message is an array, $messageText = '';
|
if ($this->hasTimeDataCollector()) { |
|
$this->addTimeMeasure("[{$label}]: " . substr($messageText, 0, 100), microtime(true)); |
|
} |
For the preview. 100 first chars are used substr($messageText, 0, 100), but when is an array, $messageText is empty
|
$isString = is_string($message); |
|
if ($this->isJsonVarDumperUsed()) { |
|
$messageJson = $messageText; |
|
$messageText = ''; |
|
} elseif ($this->isHtmlVarDumperUsed()) { |
|
$messageHtml = $messageText; |
|
if ($this->compactDumps) { |
|
$messageHtml = $this->compactMessageDump($messageHtml); |
|
} |
|
$messageText = ''; |
|
} |
possible solution?
substr($messageText ?: json_encode($messageJson, JSON_INVALID_UTF8_SUBSTITUTE), 0, 100)
Is this expected behavior? There was a preview before.
when timeline is available and message is an array,
$messageText = '';php-debugbar/src/DataCollector/MessagesCollector.php
Lines 214 to 216 in ea965a7
For the preview. 100 first chars are used
substr($messageText, 0, 100), but when is an array,$messageTextis emptyphp-debugbar/src/DataCollector/MessagesCollector.php
Lines 170 to 180 in ea965a7
possible solution?
Is this expected behavior? There was a preview before.