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

Update diff option to support PHP CS Fixer v3.0 #14

Closed
wants to merge 1 commit into from

Conversation

gerardroche
Copy link
Contributor

The --diff-format was removed in version 3.0, all diffs are now udiff.

https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/UPGRADE-v3.md

The --diff flag can be used to let the fixer output all the changes it
makes in udiff format.

Re #13

Perhaps an option should be added to allow users to choose between support for v2 and v3?

The --diff-format was removed in version 3.0, all diffs are now udiff.

https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/UPGRADE-v3.md

The --diff flag can be used to let the fixer output all the changes it
makes in udiff format.

Re jhoff#13
gerardroche added a commit to gerardroche/SublimeLinter-contrib-php-cs-fixer that referenced this pull request Aug 24, 2022
The `--diff-format` was removed in v3, all diffs are now udiff.  The
`--diff flag` can be used to let the fixer output all the changes it
makes in udiff format.
https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/UPGRADE-v3.md

By default the plugin is now configured for PHP-CS-Fixer V3. To enable
V2 configure the phpcsfixer linter. Open SublimeLinter settings e.g. via
the command palette *Preferences: Sublime Linter: Settings*:

```
"phpcsfixer": {
    "version": 2
}
```

Re jhoff#13
Close jhoff#14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant