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 fa9e83a..eda4ed1 100644 --- a/Consistence/ruleset.xml +++ b/Consistence/ruleset.xml @@ -78,10 +78,18 @@ + + + + + + + + @@ -94,6 +102,7 @@ + @@ -138,9 +147,24 @@ - + + + + + + + + + + + + + + + + + - @@ -148,7 +172,6 @@ - @@ -158,11 +181,13 @@ + + @@ -243,6 +268,7 @@ + @@ -257,6 +283,7 @@ + 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 2b8ddf2..91defc3 100644 --- a/composer.json +++ b/composer.json @@ -12,8 +12,8 @@ ], "require": { "php": "~7.1", - "squizlabs/php_codesniffer": "~3.3.1", - "slevomat/coding-standard": "~4.7" + "squizlabs/php_codesniffer": "~3.5.5", + "slevomat/coding-standard": "~6.0" }, "require-dev": { "jakub-onderka/php-console-highlighter": "0.4",