Skip to content

Commit 9874619

Browse files
committed
Remove Laravel6\ExceptionHandlerDecorator
Because Laravel 6 is no longer supported
1 parent 9956560 commit 9874619

File tree

2 files changed

+1
-103
lines changed

2 files changed

+1
-103
lines changed

src/Codeception/Lib/Connector/Laravel.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Closure;
88
use Codeception\Lib\Connector\Laravel\ExceptionHandlerDecorator as LaravelExceptionHandlerDecorator;
9-
use Codeception\Lib\Connector\Laravel6\ExceptionHandlerDecorator as Laravel6ExceptionHandlerDecorator;
109
use Codeception\Module\Laravel as LaravelModule;
1110
use Codeception\Stub;
1211
use Dotenv\Dotenv;
@@ -154,14 +153,7 @@ private function initialize(SymfonyRequest $request = null): void
154153

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

157-
// Replace the Laravel exception handler with our decorated exception handler,
158-
// so exceptions can be intercepted for the disable_exception_handling functionality.
159-
if (version_compare(Application::VERSION, '7.0.0', '<')) {
160-
$decorator = new Laravel6ExceptionHandlerDecorator($this->getExceptionHandler());
161-
} else {
162-
$decorator = new LaravelExceptionHandlerDecorator($this->getExceptionHandler());
163-
}
164-
156+
$decorator = new LaravelExceptionHandlerDecorator($this->getExceptionHandler());
165157
$decorator->exceptionHandlingDisabled($this->exceptionHandlingDisabled);
166158
$this->app->instance(ExceptionHandler::class, $decorator);
167159

src/Codeception/Lib/Connector/Laravel6/ExceptionHandlerDecorator.php

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy