Skip to content

Commit

Permalink
Merge pull request #217
Browse files Browse the repository at this point in the history
dev
  • Loading branch information
leonardosahon authored Dec 9, 2024
2 parents b5f5e41 + 602d972 commit 9b5888d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/CoreException.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ private function container(?string $title, ?string $body, array $other = []): ar
$show_internal_trace = $other['show_internal_trace'] ?? self::$show_internal_trace;

$cli_mode = LayConfig::get_mode() === LayMode::CLI;
$use_json = $cli_mode ? false : $this->throw_as_json;
$use_json = $use_json ?: !isset(LayConfig::user_agent()['browser']);
$use_json = $this->throw_as_json ?: !isset(LayConfig::user_agent()['browser']);
$use_json = $cli_mode ? false : $use_json;


if (!empty(@$other['raw'])) {
Expand Down

0 comments on commit 9b5888d

Please sign in to comment.