Skip to content

Commit

Permalink
Fixed docs not render in Cli mode
Browse files Browse the repository at this point in the history
  • Loading branch information
solital committed Aug 24, 2024
1 parent 7feff2b commit fcb039e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Released Notes

## v3.3.3 - (2024-08-24)

### Fixed

- Fixed docs not render in Cli mode

--------------------------------------------------------------------------

## v3.3.2 - (2024-08-13)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/ModernPHPException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ModernPHPException
{
use HelpersTrait, HandlerAssetsTrait, RenderTrait;

public const VERSION = "3.3.2";
public const VERSION = "3.3.3";

/**
* @var Bench
Expand Down
9 changes: 6 additions & 3 deletions src/Trait/RenderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,15 @@ private function renderSolutionCli(): void
$exception->getSolution();
$solution = new Solution();

CliMessage::success(" " . $solution->getTitle())->print();

if (!empty($this->solution->getDescription()) || $this->solution->getDescription() != "") {
CliMessage::success($solution->getTitle())->print();
echo " : ";
CliMessage::success($solution->getDescription())->print()->break(true);
} else {
CliMessage::success($solution->getTitle())->print()->break(true);
}

if (!empty($this->solution->getDocs()) || $this->solution->getDocs() != "") {
CliMessage::info(" See more in: " . $solution->getDocs()["link"])->print()->break(true);
}
}
}
Expand Down

0 comments on commit fcb039e

Please sign in to comment.