diff --git a/src/Markdown.php b/src/Markdown.php index e463d5c..dd7727f 100644 --- a/src/Markdown.php +++ b/src/Markdown.php @@ -174,9 +174,9 @@ private function addHtmlExtension(string $file_name): ?string /** * Compile Markdown to Raw HTML Output * - * @return string|null|\LogicException + * @throws \LogicException */ - public function toHtml(): \LogicException|string|null + public function toHtml(): ?string { if (!isset($this->contents) || count($this->contents) == 0) { throw new \LogicException(