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

CS ruleset: minor tweaks #502

Merged
merged 1 commit into from
Jul 21, 2020
Merged

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Jul 21, 2020

  1. According to the composer.json file, the minimum supported PHP version is PHP 5.4, so PHPCompatibility should be set to check for that, not for PHP 5.6 and up.
  2. Excluding a complete sniff instead of including it twice and excluding the single errorcode.
    This is more efficient as it prevents the sniff from running completely instead of letting the sniff run and silencing the error at the moment it is being thrown.

1. According to the `composer.json` file, the minimum supported PHP version is PHP 5.4, so PHPCompatibility should be set to check for that, not for PHP 5.6 and up.
2. Excluding a complete sniff instead of including it twice and excluding the single errorcode.
    This is more efficient as it prevents the sniff from running completely instead of letting the sniff run and silencing the error at the moment it is being thrown.
@jrfnl jrfnl requested a review from a team as a code owner July 21, 2020 20:20
@GaryJones GaryJones merged commit f3944e7 into develop Jul 21, 2020
@GaryJones GaryJones deleted the fix/minor-phpcs-ruleset-tweak branch July 21, 2020 21:30
@GaryJones GaryJones added this to the 2.2.0 milestone Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants