We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0187c2e commit 064a24fCopy full SHA for 064a24f
1 file changed
src/Exception/Run.php
@@ -101,7 +101,7 @@ public function prependHandler($handler)
101
* Register your handler as the last of all currently registered handlers (to be executed first).
102
* Prefer using appendHandler and prependHandler for clarity.
103
*
104
- * @param Callable|HandlerInterface $handler
+ * @param callable|HandlerInterface $handler
105
106
* @return Run
107
@@ -174,7 +174,7 @@ public function clearHandlers()
174
public function register()
175
{
176
if (empty($this->getHandlers())) {
177
- if ((bool) \Leaf\Config::get("debug")) {
+ if (\Leaf\Anchor::toBool(\Leaf\Config::get('debug'))) {
178
$this->pushHandler(new \Leaf\Exception\Handler\PrettyPageHandler);
179
} else {
180
$this->pushHandler(new \Leaf\Exception\Handler\CustomHandler);
0 commit comments