diff --git a/src/Tempest/Console/src/GenericConsole.php b/src/Tempest/Console/src/GenericConsole.php index a4b225f86..ff96db6b6 100644 --- a/src/Tempest/Console/src/GenericConsole.php +++ b/src/Tempest/Console/src/GenericConsole.php @@ -157,7 +157,7 @@ public function warning(string $line, ?string $symbol = null): self public function success(string $line, ?string $symbol = null): self { - $symbol ??= '✔︎'; + $symbol ??= '✓'; $this->writeln(" {$symbol} {$line}"); diff --git a/src/Tempest/Console/src/Middleware/OverviewMiddleware.php b/src/Tempest/Console/src/Middleware/OverviewMiddleware.php index d1693995b..ae6a716e8 100644 --- a/src/Tempest/Console/src/Middleware/OverviewMiddleware.php +++ b/src/Tempest/Console/src/Middleware/OverviewMiddleware.php @@ -79,7 +79,6 @@ private function renderOverview(bool $showHidden = false): void ->toString(); $this->console - ->writeln() ->writeln() ->writeln($title); @@ -91,7 +90,7 @@ private function renderOverview(bool $showHidden = false): void $this->console ->unless( condition: $this->discoveryCache->isValid(), - callback: fn (Console $console) => $console->writeln(PHP_EOL . 'Discovery cache invalid. Run discovery:generate to enable discovery caching.'), + callback: fn (Console $console) => $console->writeln()->error('Discovery cache invalid. Run discovery:generate to enable discovery caching.'), ); } } diff --git a/tests/Fixtures/Console/StylingCommand.php b/tests/Fixtures/Console/StylingCommand.php new file mode 100644 index 000000000..475490226 --- /dev/null +++ b/tests/Fixtures/Console/StylingCommand.php @@ -0,0 +1,23 @@ +info('info') + ->success('success') + ->warning('warning') + ->error('error'); + } +}