-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
the color method is typed with a array parameter for color.
ansi-php/src/Traits/EscapeSequences/SGR.php
Lines 47 to 55 in f581b2f
| /** | |
| * 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
Metadata
Metadata
Assignees
Labels
No labels