Skip to content

Commit 91c2abb

Browse files
Workaround disabled "var_dump"
1 parent 2b775e2 commit 91c2abb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

EventListener/DebugHandlersListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class DebugHandlersListener implements EventSubscriberInterface
5454
*/
5555
public function __construct(callable $exceptionHandler = null, LoggerInterface $logger = null, $levels = \E_ALL, ?int $throwAt = \E_ALL, bool $scream = true, $fileLinkFormat = null, bool $scope = true)
5656
{
57-
$handler = set_exception_handler('var_dump');
57+
$handler = set_exception_handler('is_int');
5858
$this->earlyHandler = \is_array($handler) ? $handler[0] : null;
5959
restore_exception_handler();
6060

@@ -80,7 +80,7 @@ public function configure(Event $event = null)
8080
}
8181
$this->firstCall = $this->hasTerminatedWithException = false;
8282

83-
$handler = set_exception_handler('var_dump');
83+
$handler = set_exception_handler('is_int');
8484
$handler = \is_array($handler) ? $handler[0] : null;
8585
restore_exception_handler();
8686

0 commit comments

Comments
 (0)