From aa6d8c8b9e13f097fbea6b745354ed31c590bc11 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Sat, 11 Nov 2023 11:18:19 +0100 Subject: [PATCH] update WPCS definitions to v3.0 --- composer.json | 8 ++++---- phpcs.xml | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index ee42659f..fd912d89 100644 --- a/composer.json +++ b/composer.json @@ -22,17 +22,17 @@ "forum": "https://wordpress.org/support/plugin/cachify" }, "require": { - "php": ">=5.2.0", + "php": ">=5.6", "composer/installers": "~1.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^v0.7", + "dealerdirect/phpcodesniffer-composer-installer": "^v1.0", "matthiasmullie/minify": "^1.3", "phpunit/phpunit": "^5|^7|^9", "squizlabs/php_codesniffer": "^3.7", "phpcompatibility/phpcompatibility-wp": "^2.1", - "wp-coding-standards/wpcs": "^2.3", - "yoast/phpunit-polyfills": "^1.0" + "wp-coding-standards/wpcs": "^3.0", + "yoast/phpunit-polyfills": "^2.0" }, "scripts": { "post-install-cmd": [ diff --git a/phpcs.xml b/phpcs.xml index 750725cb..356fca15 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -21,7 +21,11 @@ - + + + + +