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 010a772 commit e850fb5Copy full SHA for e850fb5
src/Tempest/Core/src/Kernel.php
@@ -182,7 +182,7 @@ public function registerKernelErrorHandler(): self
182
return $this;
183
}
184
185
- if ($environment->isProduction()) {
+ if (PHP_SAPI !== 'cli' && $environment->isProduction()) {
186
$handler = new HttpProductionErrorHandler();
187
set_exception_handler($handler->handleException(...));
188
set_error_handler($handler->handleError(...)); // @phpstan-ignore-line
0 commit comments