diff --git a/composer.json b/composer.json index 275ac5fa..978d816c 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,8 @@ "pantheon-systems/pantheon-wordpress-upstream-tests": "dev-master", "wp-coding-standards/wpcs": "^2.1", "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0", - "phpunit/phpunit": "^6 || ^7" + "phpunit/phpunit": "^6 || ^7", + "phpcompatibility/php-compatibility": "^9.3" }, "scripts": { "lint": "@phpcs", diff --git a/composer.lock b/composer.lock index c33776f1..fa2d4a56 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e913947b06a743f666854a82a2c27470", + "content-hash": "595cc964fa99c2e3a6724b441e6f54ff", "packages": [ { "name": "solarium/solarium", @@ -1112,6 +1112,64 @@ "description": "Library for handling version information and constraints", "time": "2017-03-05T17:38:23+00:00" }, + { + "name": "phpcompatibility/php-compatibility", + "version": "9.3.2", + "source": { + "type": "git", + "url": "https://github.com/PHPCompatibility/PHPCompatibility.git", + "reference": "bfca2be3992f40e92206e5a7ebe5eaee37280b58" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/bfca2be3992f40e92206e5a7ebe5eaee37280b58", + "reference": "bfca2be3992f40e92206e5a7ebe5eaee37280b58", + "shasum": "" + }, + "require": { + "php": ">=5.3", + "squizlabs/php_codesniffer": "^2.3 || ^3.0.2" + }, + "conflict": { + "squizlabs/php_codesniffer": "2.6.2" + }, + "require-dev": { + "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0" + }, + "suggest": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.", + "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." + }, + "type": "phpcodesniffer-standard", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Wim Godden", + "homepage": "https://github.com/wimg", + "role": "lead" + }, + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors" + } + ], + "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.", + "homepage": "http://techblog.wimgodden.be/tag/codesniffer/", + "keywords": [ + "compatibility", + "phpcs", + "standards" + ], + "time": "2019-10-16T21:24:24+00:00" + }, { "name": "phpdocumentor/reflection-common", "version": "1.0.1", diff --git a/phpcs.xml.dist b/phpcs.xml.dist index ac5cf5e1..ae0de9b4 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -4,6 +4,7 @@ + @@ -12,6 +13,10 @@ + + + + */examples/* */node_modules/* */tests/*