-
Notifications
You must be signed in to change notification settings - Fork 450
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
Add PHPCBF Version setting #1645
Conversation
I think this fixes #1194 as well |
PHP: | ||
phpcbf_path: true | ||
phpcbf_version: true | ||
standard: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think standard
should still be the transform function from before? i.e standard: ["standard", (standard) ->
..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If PHPCS is called without a standard the PEAR standard is used any ways. If we want to default the standard to PEAR I feel it would be better to use the default property in options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. Let's set PEAR
as default, so we are backwards compatible. Otherwise, this looks good to go!
@@ -5874,23 +5874,41 @@ | |||
"title": "PHPCBF Path", | |||
"type": "string", | |||
"default": "", | |||
"description": "Path to the `phpcbf` CLI executable (Supported by PHP-CS-Fixer)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Set
PEAR
to be default value ofstandard
- Rebuild docs
Thanks for contributing! |
Published to v0.29.24 |
What does this implement/fix? Explain your changes.
This adds a setting to PHP for the PHPCBF Version.
If the PHPCBF version is 3 than it removes the
--no-patch
flagDoes this close any currently open issues?
#1643
Any other comments?
The setting is defaulted to 2 so it doesn't change the current behavior
Checklist
Check all those that are applicable and complete.
master
branchnpm run docs