Skip to content

Commit 064a24f

Browse files
committed
fix: patch up issue with custom handlers
1 parent 0187c2e commit 064a24f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Exception/Run.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function prependHandler($handler)
101101
* Register your handler as the last of all currently registered handlers (to be executed first).
102102
* Prefer using appendHandler and prependHandler for clarity.
103103
*
104-
* @param Callable|HandlerInterface $handler
104+
* @param callable|HandlerInterface $handler
105105
*
106106
* @return Run
107107
*
@@ -174,7 +174,7 @@ public function clearHandlers()
174174
public function register()
175175
{
176176
if (empty($this->getHandlers())) {
177-
if ((bool) \Leaf\Config::get("debug")) {
177+
if (\Leaf\Anchor::toBool(\Leaf\Config::get('debug'))) {
178178
$this->pushHandler(new \Leaf\Exception\Handler\PrettyPageHandler);
179179
} else {
180180
$this->pushHandler(new \Leaf\Exception\Handler\CustomHandler);

0 commit comments

Comments
 (0)