diff --git a/src/HtmlRenderer.php b/src/HtmlRenderer.php index d035a2a..354316a 100644 --- a/src/HtmlRenderer.php +++ b/src/HtmlRenderer.php @@ -27,7 +27,7 @@ public function render( ?Verbosity $verbosity = Verbosity::BASIC, string $format = null, ): string { - if ($verbosity >= Verbosity::VERBOSE) { + if ($verbosity?->value >= Verbosity::VERBOSE->value) { return (string)$this->renderer->renderVerbose($exception); } diff --git a/src/JsonRenderer.php b/src/JsonRenderer.php index 9243ac2..76a0634 100644 --- a/src/JsonRenderer.php +++ b/src/JsonRenderer.php @@ -21,7 +21,7 @@ public function render( ?Verbosity $verbosity = Verbosity::BASIC, string $format = null, ): string { - if ($verbosity >= Verbosity::VERBOSE) { + if ($verbosity?->value >= Verbosity::VERBOSE->value) { return (string)$this->renderer->renderVerbose($exception); } diff --git a/src/PlainTextRenderer.php b/src/PlainTextRenderer.php index 03d3c7f..dd7e018 100644 --- a/src/PlainTextRenderer.php +++ b/src/PlainTextRenderer.php @@ -21,7 +21,7 @@ public function render( ?Verbosity $verbosity = Verbosity::BASIC, string $format = null, ): string { - if ($verbosity >= Verbosity::VERBOSE) { + if ($verbosity?->value >= Verbosity::VERBOSE->value) { return (string)$this->renderer->renderVerbose($exception); } diff --git a/src/XmlRenderer.php b/src/XmlRenderer.php index 84048f8..9daeb53 100644 --- a/src/XmlRenderer.php +++ b/src/XmlRenderer.php @@ -21,7 +21,7 @@ public function render( ?Verbosity $verbosity = Verbosity::BASIC, string $format = null, ): string { - if ($verbosity >= Verbosity::VERBOSE) { + if ($verbosity?->value >= Verbosity::VERBOSE->value) { return (string)$this->renderer->renderVerbose($exception); }