Skip to content

Commit 52919c5

Browse files
committed
style: fix code style
1 parent b5093c4 commit 52919c5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

system/Debug/Toolbar.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
use CodeIgniter\I18n\Time;
2828
use Config\Toolbar as ToolbarConfig;
2929
use Kint\Kint;
30+
use Throwable;
3031

3132
/**
3233
* Displays a toolbar with bits of stats to aid a developer in debugging.
@@ -390,13 +391,13 @@ public function prepare(?RequestInterface $request = null, ?ResponseInterface $r
390391
}
391392

392393
$config = config(ToolbarConfig::class);
393-
394+
394395
try {
395396
$stats = $app->getPerformanceStats();
396397
if (! isset($stats['startTime']) || ! isset($stats['totalTime'])) {
397398
return;
398399
}
399-
} catch (\Throwable $e) {
400+
} catch (Throwable) {
400401
return;
401402
}
402403

user_guide_src/source/changelogs/v4.7.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Bugs Fixed
195195

196196
- **Cookie:** The ``CookieInterface::SAMESITE_STRICT``, ``CookieInterface::SAMESITE_LAX``, and ``CookieInterface::SAMESITE_NONE`` constants are now written in ucfirst style to be consistent with usage in the rest of the framework.
197197
- **Cache:** Changed ``WincacheHandler::increment()`` and ``WincacheHandler::decrement()`` to return ``bool`` instead of ``mixed``.
198-
- **Toolbar:** Fixed **Maximum call stack size exceeded** crash when AJAX-like requests (HTMX, Turbo, Unpoly, etc.) were made on pages with Debug Toolbar enabled.
198+
- **Toolbar:** Fixed **Maximum call stack size exceeded** crash when AJAX-like requests (HTMX, Turbo, Unpoly, etc.) were made on pages with Debug Toolbar enabled.
199199

200200
See the repo's
201201
`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_

0 commit comments

Comments
 (0)