Skip to content

Commit

Permalink
Fix headers rendering in console renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Apr 14, 2024
1 parent 4571264 commit aa66a15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class Info
{
public const NAME = 'Buggregator Trap';
public const VERSION = '1.4.5';
public const VERSION = '1.4.6';
public const LOGO_CLI_COLOR = <<<CONSOLE
\e[44;97;1m \e[0m
\e[44;97;1m ▄█▀ ▀█▄ \e[0m
Expand Down
2 changes: 1 addition & 1 deletion src/Sender/Console/Support/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public static function renderHeader(
Color $secondKeyColor = Color::Gray,
): void {
$i = 0;
foreach ((array)$value as $item) {
foreach (\is_array($value) ? $value : [$value] as $item) {
if ($i++ === 0) {
$output->write(\sprintf('<fg=%s;options=bold>%s</>: ', $keyColor->value, $name));
} else {
Expand Down

0 comments on commit aa66a15

Please sign in to comment.