From ba2d528b22f4f9855f780f12fdcc0e2945cdfd05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Sat, 20 Sep 2025 17:36:16 +0200 Subject: [PATCH 1/3] Require slevomat/coding-standard that uses PHPCS 4.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c92628d..5533693 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ ], "require": { "php": "^7.2 || ^8.0", - "slevomat/coding-standard": "^8.18.1" + "slevomat/coding-standard": "^8.23.0" }, "require-dev": { "ext-simplexml": "*" From c954277277bddb0ad1d60e31e97958ea9f21c7ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Sat, 20 Sep 2025 17:37:18 +0200 Subject: [PATCH 2/3] Replace PSR12.Files.FileHeader.SpacingAfterBlock with the new modular rules See https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/c9c4d0587fbfbd1c96d9847290025a0e96c966b9 and https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Version-4.0-User-Upgrade-Guide#changed-error-codes --- src/ruleset.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ruleset.xml b/src/ruleset.xml index ad429ca..0792451 100644 --- a/src/ruleset.xml +++ b/src/ruleset.xml @@ -20,10 +20,12 @@ - + + + From 0149d713d059e943f657c0197abfb987d5dea7c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Sat, 20 Sep 2025 17:37:52 +0200 Subject: [PATCH 3/3] Require PHP 7.4, the same as PHPCS now requires --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 5533693..3b8b709 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "dev" ], "require": { - "php": "^7.2 || ^8.0", + "php": "^7.4 || ^8.0", "slevomat/coding-standard": "^8.23.0" }, "require-dev": {