the color method is typed with a array parameter for color.
|
/** |
|
* Shorthand to set the color. |
|
* @param array $color The color you want to set. Use an array filled with ControlSequences\EscapeSequences\Enums\SGR::COLOR_* constants |
|
* @return Ansi self, for chaining |
|
*/ |
|
public function color($color = array()) |
|
{ |
|
return $this->sgr($color); |
|
} |
a lot of examples in the readme indicate that its finde to pass a single color.
static analysis tools like phpstan/psalm error about passing a single color, because of this array type
the color method is typed with a
arrayparameter forcolor.ansi-php/src/Traits/EscapeSequences/SGR.php
Lines 47 to 55 in f581b2f
a lot of examples in the readme indicate that its finde to pass a single color.
static analysis tools like phpstan/psalm error about passing a single color, because of this array type