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 php-cs-fixer --level option to --rules #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 17, 2021

  1. Update php-cs-fixer --level option to --rules

    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.
    jadeedward authored May 17, 2021
    Configuration menu
    Copy the full SHA
    29af08a View commit details
    Browse the repository at this point in the history