From c3ebef3e66af30aedca8d78bc54a45eec27826e9 Mon Sep 17 00:00:00 2001 From: Pablo Castro Date: Thu, 2 Mar 2023 13:57:35 -0400 Subject: [PATCH] Includes PHP 8+ compatibility check composer script. This is an optional commit. It provides tools to help with compatibility checks for PHP 8+. Ref #637 --- composer.json | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index f9bf0cbd..6831179f 100644 --- a/composer.json +++ b/composer.json @@ -11,14 +11,25 @@ "ext-curl": "*" }, "require-dev": { - "phpunit/phpunit": "9.*" + "phpunit/phpunit": "9.*", + "squizlabs/php_codesniffer": "3.*", + "phpcsstandards/phpcsutils": "@alpha", + "phpcompatibility/php-compatibility": "dev-develop" }, "autoload": { "classmap": ["lib"] }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } + }, "extra": { "branch-alias": { "dev-master": "2.4.x-dev" } - } + }, + "scripts": { + "compatibility": "phpcs --extensions=php --severity=1 --standard=PHPCompatibility --runtime-set testVersion 8.1- lib Tests" + } }