Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
staabm opened this issue Dec 13, 2021 · 0 comments
Open

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

staabm opened this issue Dec 13, 2021 · 0 comments

Comments

@staabm
Copy link

staabm commented Dec 13, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant