diff --git a/.eslintrc.js b/.eslintrc.js
index 2a227e5b9..a0fde4b80 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -15,6 +15,7 @@ module.exports = {
'prefer-arrow-callback': ['error'],
'arrow-parens': ['error'],
'arrow-spacing': ['error'],
- 'no-var': ['error']
+ 'no-var': ['error'],
+ 'prefer-const': ['error']
}
};
diff --git a/examples/exception.php b/examples/exception.php
index c45729059..8b46f8e89 100644
--- a/examples/exception.php
+++ b/examples/exception.php
@@ -16,6 +16,7 @@
Tracy: exception demo
-Errors
+Warnings
-Count | Error |
$count): [$file, $line, $message] = explode('|', $item, 3) ?>
= $count ? "$count\xC3\x97" : '' ?> |
diff --git a/src/Tracy/Bar/panels/errors.tab.phtml b/src/Tracy/Bar/panels/errors.tab.phtml
index 839315fb1..70b0a53ed 100644
--- a/src/Tracy/Bar/panels/errors.tab.phtml
+++ b/src/Tracy/Bar/panels/errors.tab.phtml
@@ -21,5 +21,5 @@ if (empty($data)) {
= $sum = array_sum($data), $sum > 1 ? ' errors' : ' error' ?>
+= $sum = array_sum($data), $sum > 1 ? ' warnings' : ' warning' ?>
diff --git a/tests/Tracy/Debugger.warnings.html.phpt b/tests/Tracy/Debugger.warnings.html.phpt
index e94338b12..02aa82c3a 100644
--- a/tests/Tracy/Debugger.warnings.html.phpt
+++ b/tests/Tracy/Debugger.warnings.html.phpt
@@ -31,7 +31,6 @@ register_shutdown_function(function () {
$panelContent = (string) DomQuery::fromHtml($rawContent)->find('#tracy-debug-panel-Tracy-errors')[0]['data-tracy-content'];
Assert::match(<<<'XX'
%A%
- Count | Error |
1%a% |
PHP Notice: Only variables should be assigned by reference in %a%:%d% |