We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1ed127 commit e17c6c3Copy full SHA for e17c6c3
EventListener/DebugHandlersListener.php
@@ -34,10 +34,11 @@ public function __construct($exceptionHandler)
34
public function configure()
35
{
36
if ($this->exceptionHandler) {
37
- $mainHandler = set_exception_handler('var_dump');
+ $handler = set_exception_handler('var_dump');
38
+ $handler = is_array($handler) ? $handler[0] : null;
39
restore_exception_handler();
- if ($mainHandler instanceof ExceptionHandler) {
40
- $mainHandler->setHandler($this->exceptionHandler);
+ if ($handler instanceof ExceptionHandler) {
41
+ $handler->setHandler($this->exceptionHandler);
42
}
43
$this->exceptionHandler = null;
44
0 commit comments