We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1efae63 commit 063dc78Copy full SHA for 063dc78
src/Symfony/Component/ErrorRenderer/Resources/views/logs.html.php
@@ -16,7 +16,10 @@
16
} elseif ($log['priority'] >= 300) {
17
$status = 'warning';
18
} else {
19
- $severity = $log['context']['exception']['severity'] ?? false;
+ $severity = 0;
20
+ if (($exception = $log['context']['exception'] ?? null) instanceof \ErrorException) {
21
+ $severity = $exception->getSeverity();
22
+ }
23
$status = E_DEPRECATED === $severity || E_USER_DEPRECATED === $severity ? 'warning' : 'normal';
24
} ?>
25
<tr class="status-<?= $status; ?>" data-filter-level="<?= strtolower($this->escape($log['priorityName'])); ?>"<?php if ($channelIsDefined) { ?> data-filter-channel="<?= $this->escape($log['channel']); ?>"<?php } ?>>
0 commit comments