diff --git a/Consistence/Sniffs/Exceptions/ExceptionDeclarationSniff.php b/Consistence/Sniffs/Exceptions/ExceptionDeclarationSniff.php index 4a7ab38..befffd6 100644 --- a/Consistence/Sniffs/Exceptions/ExceptionDeclarationSniff.php +++ b/Consistence/Sniffs/Exceptions/ExceptionDeclarationSniff.php @@ -32,7 +32,7 @@ public function register(): array } /** - * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint + * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint * * @param \PHP_CodeSniffer\Files\File $phpcsFile * @param int $classPointer diff --git a/Consistence/Sniffs/NamingConventions/ValidVariableNameSniff.php b/Consistence/Sniffs/NamingConventions/ValidVariableNameSniff.php index 6ae0d78..6fd7863 100644 --- a/Consistence/Sniffs/NamingConventions/ValidVariableNameSniff.php +++ b/Consistence/Sniffs/NamingConventions/ValidVariableNameSniff.php @@ -26,7 +26,7 @@ class ValidVariableNameSniff extends \PHP_CodeSniffer\Sniffs\AbstractVariableSni ]; /** - * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint + * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint * * @param \PHP_CodeSniffer\Files\File $file * @param int $stackPointer position of the double quoted string @@ -53,7 +53,7 @@ protected function processVariable(PhpCsFile $file, $stackPointer): void } /** - * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint + * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint * @codeCoverageIgnore * * @param \PHP_CodeSniffer\Files\File $file @@ -65,7 +65,7 @@ protected function processMemberVar(PhpCsFile $file, $stackPointer): void } /** - * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint + * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint * @codeCoverageIgnore * * @param \PHP_CodeSniffer\Files\File $file diff --git a/Consistence/ruleset.xml b/Consistence/ruleset.xml index ac3bcdc..1933a3b 100644 --- a/Consistence/ruleset.xml +++ b/Consistence/ruleset.xml @@ -83,6 +83,13 @@ + + + + + + + @@ -140,9 +147,24 @@ - + + + + + + + + + + + + + + + + + - diff --git a/build/cs-ruleset.xml b/build/cs-ruleset.xml index e33e79d..1df4a2e 100644 --- a/build/cs-ruleset.xml +++ b/build/cs-ruleset.xml @@ -9,7 +9,12 @@ "/> - + + + + + + diff --git a/composer.json b/composer.json index 04a2291..1b27866 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "require": { "php": "~7.1", "squizlabs/php_codesniffer": "~3.5.0", - "slevomat/coding-standard": "~5.0" + "slevomat/coding-standard": "~6.0.0" }, "require-dev": { "jakub-onderka/php-console-highlighter": "0.4",