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

Build/PHPCS: use PHPCompatibilityWP and minor ruleset tweak #4

Merged
merged 2 commits into from
Sep 7, 2018
Merged

Build/PHPCS: use PHPCompatibilityWP and minor ruleset tweak #4

merged 2 commits into from
Sep 7, 2018

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Sep 5, 2018

Commit Summary

Build/PHPCS: use PHPCompatibilityWP

  • Switches the repo over to use PHPCompatibilityWP rather than PHPCompatibility.
    As this repo and ruleset appears to be aimed at WordPress projects, using the PHPCompatibilityWP ruleset is the better choice to prevent false positives for PHP functions and constants which are back-filled by WP.
  • Switches the dependency over to use the repo in the PHPCompatibility organisation rather than the one in wimg's personal account.

References:

PHPCS Ruleset: minor fix

Properties belong to individual sniffs, not to standards. The way the property was set, it was going to be ignored. This minor changes fixes that.

References:

This PR:
* Switches the repo over to use `PHPCompatibilityWP` rather than `PHPCompatibility`.
    As this repo and ruleset appears to be aimed at WordPress projects, using the `PHPCompatibilityWP` ruleset is the better choice to prevent false positives for PHP functions and constants which are back-filled by WP.
* Switches the dependency over to use the repo in the `PHPCompatibility` organisation rather than the one in `wimg`'s personal account.

### References:
* https://github.com/PHPCompatibility/PHPCompatibilityWP
* PHPCompatibility/PHPCompatibility#688
* https://github.com/PHPCompatibility/PHPCompatibility/releases/tag/8.2.0
Properties belong to individual sniffs, not to standards. The way the property was set, it was going to be ignored. This minor changes fixes that.
@stian-overasen
Copy link
Member

Hi @jrfnl. Thank you for the pull request!

@stian-overasen stian-overasen merged commit 775aa10 into DekodeInteraktiv:master Sep 7, 2018
@jrfnl jrfnl deleted the feature/composer-phpcompatibility-repo branch September 7, 2018 08:00
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