ansi-php icon indicating copy to clipboard operation
ansi-php copied to clipboard

`->reset()->lf()` and `->lf()->reset()` are not interchangable

Open staabm opened this issue 3 years ago • 0 comments

it seems there is a difference between these 2 calls:

$ansi->color(SGR::COLOR_FG_RED)->text($text)->reset()->lf();

$ansi->color(SGR::COLOR_FG_RED)->text($text)->lf()->reset();

phpstorm and phpstan tell me that the 2nd example is an error. from a user point of view, I feel these should be the same thing

staabm avatar Dec 13 '21 17:12 staabm