Skip to content

Commit e850fb5

Browse files
authored
chore(core): http kernel exception handler not in cli (#767)
1 parent 010a772 commit e850fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tempest/Core/src/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function registerKernelErrorHandler(): self
182182
return $this;
183183
}
184184

185-
if ($environment->isProduction()) {
185+
if (PHP_SAPI !== 'cli' && $environment->isProduction()) {
186186
$handler = new HttpProductionErrorHandler();
187187
set_exception_handler($handler->handleException(...));
188188
set_error_handler($handler->handleError(...)); // @phpstan-ignore-line

0 commit comments

Comments
 (0)