We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c50100 commit a069ebaCopy full SHA for a069eba
src/jblond/cli/CliColors.php
@@ -56,7 +56,8 @@ class CliColors {
56
* @return string
57
* @throws InvalidArgumentException
58
*/
59
- public function getColoredString($string, $foregroundColor = null, $backgroundColor = null){
+ public function getColoredString(string $string, ?string $foregroundColor = null, ?string $backgroundColor = null): string
60
+ {
61
$coloredString = '';
62
63
if(!isset($this->foregroundColors[(string) $foregroundColor])){
0 commit comments