Skip to content

Commit

Permalink
Remove unneeded check
Browse files Browse the repository at this point in the history
Now we are on 1.10.x
  • Loading branch information
barryvdh committed Oct 31, 2014
1 parent 2459514 commit 97d92e6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/LaravelDebugBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 97d92e6

Please sign in to comment.