From c9e46599a144fdcf487187eb8faf8c00559476d9 Mon Sep 17 00:00:00 2001 From: Mark Scherer Date: Fri, 29 Mar 2024 23:38:12 +0100 Subject: [PATCH] Add new PSR4 sniff (#34) * Add new PSR4 sniff --- PSR2R/ruleset.xml | 1 + composer.json | 2 +- docs/sniffs.md | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/PSR2R/ruleset.xml b/PSR2R/ruleset.xml index 686e0c3..354ae7f 100644 --- a/PSR2R/ruleset.xml +++ b/PSR2R/ruleset.xml @@ -114,6 +114,7 @@ + diff --git a/composer.json b/composer.json index dd090dd..d57a216 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ ], "require": { "php": ">=8.1", - "php-collective/code-sniffer": "^0.2", + "php-collective/code-sniffer": "^0.2.6", "slevomat/coding-standard": "^8.3.0", "squizlabs/php_codesniffer": "^3.7.0" }, diff --git a/docs/sniffs.md b/docs/sniffs.md index b831c96..0228031 100644 --- a/docs/sniffs.md +++ b/docs/sniffs.md @@ -1,6 +1,6 @@ # PSR2R Code Sniffer -The PSR2R standard contains 190 sniffs +The PSR2R standard contains 191 sniffs Generic (22 sniffs) ------------------- @@ -33,13 +33,14 @@ PEAR (3 sniffs) - PEAR.Functions.ValidDefaultValue - PEAR.NamingConventions.ValidClassName -PhpCollective (38 sniffs) +PhpCollective (39 sniffs) ------------------------- - PhpCollective.Classes.ClassFileName - PhpCollective.Classes.MethodArgumentDefaultValue - PhpCollective.Classes.MethodDeclaration - PhpCollective.Classes.MethodTypeHint - PhpCollective.Classes.PropertyDefaultValue +- PhpCollective.Classes.Psr4 - PhpCollective.Classes.ReturnTypeHint - PhpCollective.Classes.SelfAccessor - PhpCollective.Commenting.Attributes