bramus / bramus/ansi-php

phpdoc-type: `color()`

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
96
Forks
10
PR merge metrics
No merged PRs in 30d

Description

the color method is typed with a `array` parameter for `color`.
https://github.com/bramus/ansi-php/blob/f581b2fd322177e5fabd67af240811838c1c8fbc/src/Traits/EscapeSequences/SGR.php#L47-L55

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.