diff --git a/src/LaravelDebugBar.php b/src/LaravelDebugBar.php index b202f2ae7..5d25cfb06 100644 --- a/src/LaravelDebugBar.php +++ b/src/LaravelDebugBar.php @@ -154,11 +154,9 @@ function () use ($debugbar) { if ($this->shouldCollect('exceptions', true)) { try { $exceptionCollector = new ExceptionsCollector(); - if (method_exists($exceptionCollector, 'setChainExceptions')) { - $exceptionCollector->setChainExceptions( - $this->app['config']->get('laravel-debugbar::config.options.exceptions.chain', true) - ); - } + $exceptionCollector->setChainExceptions( + $this->app['config']->get('laravel-debugbar::config.options.exceptions.chain', true) + ); $this->addCollector($exceptionCollector); if ($this->checkVersion('5.0', '<')) { $this->app->error( @@ -302,7 +300,7 @@ function ($level, $message, $context) use ($logger) { $types = $this->app['config']->get('laravel-debugbar::config.options.db.explain.types'); $queryCollector->setExplainSource(true, $types); } - + if ($this->app['config']->get('laravel-debugbar::config.options.db.hints', true)) { $queryCollector->setShowHints(true); }