Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Nov 19, 2024
1 parent 99933ff commit f4243d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Tempest/Core/src/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function isOther(): bool

public static function fromEnv(): self
{
$value = env('ENVIRONMENT', 'production');
$value = env('ENVIRONMENT', 'local');

return self::tryFrom($value) ?? throw new InvalidEnvironment($value);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Tempest/Core/src/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ private function registerKernelErrorHandler(): self
$handler = new HttpProductionErrorHandler();
set_exception_handler($handler->handleException(...));
set_error_handler($handler->handleError(...)); // @phpstan-ignore-line
} else {
} elseif (PHP_SAPI !== 'cli') {
$whoops = new Run();
$whoops->pushHandler(new PrettyPageHandler());
$whoops->register();
Expand Down

0 comments on commit f4243d9

Please sign in to comment.