-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Default ansi option to null #44176
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
Conversation
We should probably mention this BC break in the CHANGELOG file though |
Either it's a BC break or it's a bugfix, but not both. Do libs impacted by the previous behavior change that this PR aims to fix (psysh, tinker) have changed their code meanwhile? That may help taking the right decision here. |
Switching |
Thanks @jderusse. |
This PR is an alternative to #41794 (see comment for the reasoning of this PR) to fixes laravel/tinker#127
It defaults the negatable option
--ansi
to nullFor the recall, having default null is interpreted like this:
--ansi
ansi = true
no-ansi = false
--no-ansi
ansi = false
no-ansi = true
ansi = null
no-ansi = null
This could be a BC break for people that use strict comparison
getOption('ansi') === false
But:
Here is a summary of the changes