Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update php-cs-fixer --level option to --rules#14

Open
Razoxane wants to merge 1 commit into
digitalpulp:masterdigitalpulp/pre-commit-php:masterfrom
Razoxane:patch-1Razoxane/pre-commit-php:patch-1Copy head branch name to clipboard
Open

Update php-cs-fixer --level option to --rules#14
Razoxane wants to merge 1 commit into
digitalpulp:masterdigitalpulp/pre-commit-php:masterfrom
Razoxane:patch-1Razoxane/pre-commit-php:patch-1Copy head branch name to clipboard

Conversation

@Razoxane

Copy link
Copy Markdown

When I tried using the php-cs-fixer hook for the first time, I got the following error:
The "--level" option does not exist.

PHP CS Fixer's fix method args were changed in version 2.0 in 2015 in commit PHP-CS-Fixer/PHP-CS-Fixer@d1aec7b.
Specifically, the --level arg was deprecated and changed to --rules, with the requirement of an @ symbol to indicate a pre-defined ruleset.

Update the example args to user the new syntax, so the hook works for PHP CS Fixer versions 2.0 and up.

When I tried using the `php-cs-fixer` hook for the first time, I got the following error:
`The "--level" option does not exist.`

PHP CS Fixer's `fix` method args were changed in version 2.0 in 2015 in commit PHP-CS-Fixer/PHP-CS-Fixer@d1aec7b.
Specifically, the `--level` arg was deprecated and changed to `--rules`, with the requirement of an @ symbol to indicate a pre-defined ruleset.

Update the example args to user the new syntax, so the hook works for PHP CS Fixer versions 2.0 and up.
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.