From 3c1f390ea0ec13e78cef443975c92a0dd8c0d5b2 Mon Sep 17 00:00:00 2001 From: zingimmick Date: Fri, 24 Dec 2021 18:51:10 +0800 Subject: [PATCH] Skip conflict sniffs --- config/set/slevomat-coding-standard.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config/set/slevomat-coding-standard.php b/config/set/slevomat-coding-standard.php index 12ed4c5..e32fe6b 100644 --- a/config/set/slevomat-coding-standard.php +++ b/config/set/slevomat-coding-standard.php @@ -124,14 +124,16 @@ $services->set(UnusedVariableSniff::class); $services->set(UselessVariableSniff::class); $services->set(DuplicateSpacesSniff::class); - $services->set(ParameterTypeHintSniff::class); + // Conflict with declaration must be compatible with parent method +// $services->set(\SlevomatCodingStandard\Sniffs\TypeHints\ParameterTypeHintSniff::class); +// $services->set(\SlevomatCodingStandard\Sniffs\TypeHints\ParameterTypeHintSniff::class); $services->set(PropertyTypeHintSniff::class); $services->set(ReturnTypeHintSniff::class); $services->set(UnusedUsesSniff::class) ->property('searchAnnotations', true); -// $services->set(UselessConstantTypeHintSniff::class); + // Conflict with VarConstantCommentRector +// $services->set(\SlevomatCodingStandard\Sniffs\TypeHints\UselessConstantTypeHintSniff::class); $services->set(InlineDocCommentDeclarationSniff::class); $services->set(UselessFunctionDocCommentSniff::class); $services->set(DisallowCommentAfterCodeSniff::class); - $services->set(UnusedParameterSniff::class); };