Skip to content

Commit 97d92e6

Browse files
committed
Remove unneeded check
Now we are on 1.10.x
1 parent 2459514 commit 97d92e6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/LaravelDebugBar.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,9 @@ function () use ($debugbar) {
154154
if ($this->shouldCollect('exceptions', true)) {
155155
try {
156156
$exceptionCollector = new ExceptionsCollector();
157-
if (method_exists($exceptionCollector, 'setChainExceptions')) {
158-
$exceptionCollector->setChainExceptions(
159-
$this->app['config']->get('laravel-debugbar::config.options.exceptions.chain', true)
160-
);
161-
}
157+
$exceptionCollector->setChainExceptions(
158+
$this->app['config']->get('laravel-debugbar::config.options.exceptions.chain', true)
159+
);
162160
$this->addCollector($exceptionCollector);
163161
if ($this->checkVersion('5.0', '<')) {
164162
$this->app->error(
@@ -302,7 +300,7 @@ function ($level, $message, $context) use ($logger) {
302300
$types = $this->app['config']->get('laravel-debugbar::config.options.db.explain.types');
303301
$queryCollector->setExplainSource(true, $types);
304302
}
305-
303+
306304
if ($this->app['config']->get('laravel-debugbar::config.options.db.hints', true)) {
307305
$queryCollector->setShowHints(true);
308306
}

0 commit comments

Comments
 (0)