diff --git a/Consistence/Sniffs/Exceptions/ExceptionDeclarationSniff.php b/Consistence/Sniffs/Exceptions/ExceptionDeclarationSniff.php index 1285458..4a7ab38 100644 --- a/Consistence/Sniffs/Exceptions/ExceptionDeclarationSniff.php +++ b/Consistence/Sniffs/Exceptions/ExceptionDeclarationSniff.php @@ -32,6 +32,8 @@ public function register(): array } /** + * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint + * * @param \PHP_CodeSniffer\Files\File $phpcsFile * @param int $classPointer */ diff --git a/Consistence/Sniffs/NamingConventions/ValidVariableNameSniff.php b/Consistence/Sniffs/NamingConventions/ValidVariableNameSniff.php index eca4f36..6ae0d78 100644 --- a/Consistence/Sniffs/NamingConventions/ValidVariableNameSniff.php +++ b/Consistence/Sniffs/NamingConventions/ValidVariableNameSniff.php @@ -26,6 +26,8 @@ class ValidVariableNameSniff extends \PHP_CodeSniffer\Sniffs\AbstractVariableSni ]; /** + * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint + * * @param \PHP_CodeSniffer\Files\File $file * @param int $stackPointer position of the double quoted string */ @@ -51,6 +53,7 @@ protected function processVariable(PhpCsFile $file, $stackPointer): void } /** + * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint * @codeCoverageIgnore * * @param \PHP_CodeSniffer\Files\File $file @@ -62,6 +65,7 @@ protected function processMemberVar(PhpCsFile $file, $stackPointer): void } /** + * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint * @codeCoverageIgnore * * @param \PHP_CodeSniffer\Files\File $file diff --git a/Consistence/ruleset.xml b/Consistence/ruleset.xml index bcf4dfe..c832dc1 100644 --- a/Consistence/ruleset.xml +++ b/Consistence/ruleset.xml @@ -137,6 +137,14 @@ + + + + + + + + diff --git a/build/cs-ruleset.xml b/build/cs-ruleset.xml index eeb0674..e33e79d 100644 --- a/build/cs-ruleset.xml +++ b/build/cs-ruleset.xml @@ -9,4 +9,9 @@ "/> + + + + +