File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 15
15
use Symfony \Component \Console \ConsoleEvents ;
16
16
use Symfony \Component \Console \Event \ConsoleEvent ;
17
17
use Symfony \Component \Console \Output \ConsoleOutputInterface ;
18
+ use Symfony \Component \Debug \ErrorHandler as LegacyErrorHandler ;
18
19
use Symfony \Component \Debug \Exception \FatalThrowableError ;
19
20
use Symfony \Component \ErrorHandler \ErrorHandler ;
20
21
use Symfony \Component \EventDispatcher \Event ;
@@ -79,7 +80,7 @@ public function configure(Event $event = null)
79
80
restore_exception_handler ();
80
81
81
82
if ($ this ->logger || null !== $ this ->throwAt ) {
82
- if ($ handler instanceof ErrorHandler) {
83
+ if ($ handler instanceof ErrorHandler || $ handler instanceof LegacyErrorHandler ) {
83
84
if ($ this ->logger ) {
84
85
$ handler ->setDefaultLogger ($ this ->logger , $ this ->levels );
85
86
if (\is_array ($ this ->levels )) {
@@ -138,7 +139,7 @@ public function configure(Event $event = null)
138
139
}
139
140
}
140
141
if ($ this ->exceptionHandler ) {
141
- if ($ handler instanceof ErrorHandler) {
142
+ if ($ handler instanceof ErrorHandler || $ handler instanceof LegacyErrorHandler ) {
142
143
$ handler ->setExceptionHandler ($ this ->exceptionHandler );
143
144
}
144
145
$ this ->exceptionHandler = null ;
You can’t perform that action at this time.
0 commit comments