Skip to content

->reset()->lf() and ->lf()->reset() are not interchangable #10

@staabm

Description

@staabm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions