Skip to content

Commit d608baa

Browse files
committed
Make bg256 and fg256 functions static
1 parent 2e9d028 commit d608baa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Output/Color.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,15 @@ public function info(string $text, array $style = []): string
120120
/**
121121
* Returns the color code for a 256 background color.
122122
*/
123-
public function bg256(int $code): string
123+
public static function bg256(int $code): string
124124
{
125125
return "48;5;{$code}";
126126
}
127127

128128
/**
129129
* Returns the color code for a 256 foreground color.
130130
*/
131-
public function fg256(int $code): string
131+
public static function fg256(int $code): string
132132
{
133133
return "38;5;{$code}";
134134
}

0 commit comments

Comments
 (0)