Commit 93312c2b authored by Fabrice Gangler's avatar Fabrice Gangler 🎨
Browse files

CHORE(QA): add PHP Compatibility dependency

documentation:
- https://phpqa.io/projects/php-compatibility.html
- https://github.com/PHPCompatibility/PHPCompatibility

install
composer require --dev "phpcompatibility/php-compatibility"

Usage:
phpcs ./ -p --standard=PHPCompatibility --runtime-set testVersion 7.2-

Refs: #28
parent 87af36f7
......@@ -26,10 +26,11 @@
path to the standard does not have to be specified as the
x standard exists inside the PHP_CodeSniffer install directory.
-->
<rule ref="PHPCompatibility"/>
<rule ref="PSR12">
<!-- <exclude-pattern>bin/.phpunit/</exclude-pattern> -->
</rule>
<!-- <rule ref="PHPCompatibility"/>-->
<!--
You can hard-code command line values into your custom standard.
......
......@@ -40,6 +40,7 @@
"doctrine/doctrine-fixtures-bundle": "^3.3",
"fzaninotto/faker": "^1.9",
"jakub-onderka/php-parallel-lint": "^1.0",
"phpcompatibility/php-compatibility": "^9.3",
"phpmd/phpmd": "^2.8",
"phpro/grumphp": "^0.18.0",
"sensiolabs/security-checker": "^6.0",
......@@ -78,15 +79,20 @@
"symfony/polyfill-php56": "*"
},
"scripts": {
"install-codestandards": [
"\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility"
],
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
"@auto-scripts",
"@install-codestandards"
],
"post-update-cmd": [
"@auto-scripts"
"@auto-scripts",
"@install-codestandards"
]
},
"conflict": {
......
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "7191ed98ff676fe9d8e6b9b356b95d59",
"content-hash": "20a1295ebb4f2114d17eeaf1f1284000",
"packages": [
{
"name": "doctrine/annotations",
......@@ -6662,6 +6662,64 @@
],
"time": "2020-02-17T08:14:38+00:00"
},
{
"name": "phpcompatibility/php-compatibility",
"version": "9.3.5",
"source": {
"type": "git",
"url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
"reference": "9fb324479acf6f39452e0655d2429cc0d3914243"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243",
"reference": "9fb324479acf6f39452e0655d2429cc0d3914243",
"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-12-27T09:44:58+00:00"
},
{
"name": "phpmd/phpmd",
"version": "2.8.2",
......
......@@ -141,6 +141,9 @@
"php-webdriver/webdriver": {
"version": "1.8.1"
},
"phpcompatibility/php-compatibility": {
"version": "9.3.5"
},
"phpdocumentor/reflection-common": {
"version": "2.0.0"
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment