Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions src/Codeception/Lib/Connector/Laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Closure;
use Codeception\Lib\Connector\Laravel\ExceptionHandlerDecorator as LaravelExceptionHandlerDecorator;
use Codeception\Lib\Connector\Laravel6\ExceptionHandlerDecorator as Laravel6ExceptionHandlerDecorator;
use Codeception\Module\Laravel as LaravelModule;
use Codeception\Stub;
use Dotenv\Dotenv;
Expand Down Expand Up @@ -154,14 +153,7 @@ private function initialize(SymfonyRequest $request = null): void

$this->getEvents()->listen('*', $listener);

// Replace the Laravel exception handler with our decorated exception handler,
// so exceptions can be intercepted for the disable_exception_handling functionality.
if (version_compare(Application::VERSION, '7.0.0', '<')) {
$decorator = new Laravel6ExceptionHandlerDecorator($this->getExceptionHandler());
} else {
$decorator = new LaravelExceptionHandlerDecorator($this->getExceptionHandler());
}

$decorator = new LaravelExceptionHandlerDecorator($this->getExceptionHandler());
$decorator->exceptionHandlingDisabled($this->exceptionHandlingDisabled);
$this->app->instance(ExceptionHandler::class, $decorator);

Expand Down

This file was deleted.