From 31f3c5efe13ebce276304c1cb3151cda08b6f2b3 Mon Sep 17 00:00:00 2001 From: Coen Jacobs Date: Mon, 9 Sep 2024 09:35:43 +0200 Subject: [PATCH] Enforce PHP 8.0 (and up) compatibility through PHPCS --- composer.json | 7 +++++-- phpcs.xml.dist | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index f5b7421f..eda74610 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,8 @@ }, "config": { "allow-plugins": { - "phpstan/extension-installer": true + "phpstan/extension-installer": true, + "dealerdirect/phpcodesniffer-composer-installer": true }, "platform": { "php": "8.0" @@ -36,7 +37,9 @@ "phpstan/extension-installer": "^1.4", "league/flysystem": "^2.5", "symfony/console": "^5.4", - "symfony/finder": "^5.4" + "symfony/finder": "^5.4", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "phpcompatibility/php-compatibility": "dev-develop" }, "scripts": { "test": [ diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 2bf4e6c4..27d5af45 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -3,5 +3,9 @@ Coding standard ruleset based on the PSR-2 coding standard. + + + + ./src - \ No newline at end of file +