Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHPCS/Composer: update PHPCompatibility (#26)
Composer: * `wimg/php-compatibility` has been abandoned for nearly a year. Use `phpcompatibility/php-compatibility` instead. * Use the latest version of PHPCompatibility. You were missing out on a lot of new checks, including the checks to make sure your code is compatible with the upcoming PHP 7.4. * Add the DealerDirect Composer PHPCS plugin. This plugin will handle setting the PHPCS `installed_paths` automatically. This also allows for referencing the ruleset by name instead of via the path in the ruleset, which is generally more stable. PHPCS ruleset: * Rename the ruleset to `phpcs.xml.dist` which will allow PHPCS to automatically pick up on it. No need to pass the `--standard=...` command-line argument anymore. Includes removing the argument from the Travis script. * Check for cross-version compatibility for the PHP versions officially supported. According to the `composer.json` file, this code should be compatible with PHP 5.6 and above. PHPCompatibility _was_ checking against PHP 5.5 up to PHP 7.1. The new `testVersion` actually checks against PHP 5.6 up to the latest version (upcoming 7.4 at this moment). Refs: * https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions * https://github.com/PHPCompatibility/PHPCompatibility/releases/ * https://github.com/Dealerdirect/phpcodesniffer-composer-installer
- Loading branch information