File tree Expand file tree Collapse file tree 2 files changed +1
-103
lines changed
src/Codeception/Lib/Connector Expand file tree Collapse file tree 2 files changed +1
-103
lines changed Original file line number Diff line number Diff line change 66
77use Closure ;
88use Codeception \Lib \Connector \Laravel \ExceptionHandlerDecorator as LaravelExceptionHandlerDecorator ;
9- use Codeception \Lib \Connector \Laravel6 \ExceptionHandlerDecorator as Laravel6ExceptionHandlerDecorator ;
109use Codeception \Module \Laravel as LaravelModule ;
1110use Codeception \Stub ;
1211use 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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments