From 42eb4e3a8429f39ddfeff5dd0f3f74b563660559 Mon Sep 17 00:00:00 2001 From: Thomas Gnandt Date: Fri, 10 Apr 2026 07:43:57 +0200 Subject: [PATCH] add SlevomatCodingStandard.Classes.TraitUseOrder --- MO4/ruleset.xml | 2 ++ composer.json | 2 +- integrationtests/testfile.php | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/MO4/ruleset.xml b/MO4/ruleset.xml index 8b3fa1c..7b74cec 100644 --- a/MO4/ruleset.xml +++ b/MO4/ruleset.xml @@ -135,6 +135,8 @@ + + diff --git a/composer.json b/composer.json index 51843e5..037d329 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "php": "^8.1", "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0", "escapestudios/symfony2-coding-standard": "^3.17", - "slevomat/coding-standard": "^8.23", + "slevomat/coding-standard": "^8.28.1", "squizlabs/php_codesniffer": "^4.0" }, "require-dev": { diff --git a/integrationtests/testfile.php b/integrationtests/testfile.php index 9f4c249..fe96c0d 100644 --- a/integrationtests/testfile.php +++ b/integrationtests/testfile.php @@ -20,6 +20,13 @@ */ class FooBar { + use AlphaTrait; + /** + * @use GenericTrait + */ + use GenericTrait; + use ZebraTrait; + public const SOME_CONST = 42; public const STR_CONST = '43'; protected const PROTECT = 0;