From 5021d4f9f5cfa0d39e09a2169a9d08cb5aa36c4f Mon Sep 17 00:00:00 2001 From: Philo Hamel Date: Thu, 4 Feb 2021 16:31:44 +0100 Subject: [PATCH] Add PHPCompatibility --- CakePHPOefenweb/ruleset.xml | 7 ++++++- README.md | 2 +- composer.json | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CakePHPOefenweb/ruleset.xml b/CakePHPOefenweb/ruleset.xml index 696eaa2..1127265 100644 --- a/CakePHPOefenweb/ruleset.xml +++ b/CakePHPOefenweb/ruleset.xml @@ -1,7 +1,12 @@ Oefenweb Code Sniffer for CakePHP 3 - + + + + + + diff --git a/README.md b/README.md index 007b9cb..8a24ae6 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ mkdir CakePHP3Oefenweb && cd $_ && composer require oefenweb/cakephp-codesniffer ```sh vendor/bin/phpcs \ - --config-set installed_paths "${PWD}/vendor/cakephp/cakephp-codesniffer,${PWD}/vendor/oefenweb/cakephp-codesniffer" \ + --config-set installed_paths "${PWD}/vendor/cakephp/cakephp-codesniffer,${PWD}/vendor/oefenweb/cakephp-codesniffer,${PWD}/vendor/phpcompatibility/php-compatibility" \ ; ``` diff --git a/composer.json b/composer.json index b97b380..b3afb2b 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,8 @@ ], "require": { "php": ">=5.4", - "cakephp/cakephp-codesniffer": "^3.0.0" + "cakephp/cakephp-codesniffer": "^3.0.0", + "phpcompatibility/php-compatibility": "^9.0" }, "support": { "issues": "https://github.com/Oefenweb/cakephp-codesniffer/issues",