diff --git a/SlevomatCodingStandard/Sniffs/Commenting/DisallowOneLinePropertyDocCommentSniff.php b/SlevomatCodingStandard/Sniffs/Commenting/DisallowOneLinePropertyDocCommentSniff.php index bbb4e8102..bbdb29582 100644 --- a/SlevomatCodingStandard/Sniffs/Commenting/DisallowOneLinePropertyDocCommentSniff.php +++ b/SlevomatCodingStandard/Sniffs/Commenting/DisallowOneLinePropertyDocCommentSniff.php @@ -69,23 +69,6 @@ public function process(File $phpcsFile, $propertyPointer): void $commentWhitespacePointer = TokenHelper::findPrevious($phpcsFile, [T_WHITESPACE], $docCommentStartPointer); $indent = ($commentWhitespacePointer !== null ? $tokens[$commentWhitespacePointer]['content'] : '') . ' '; - /** empty comment is not split into start & end tokens properly */ - if ($tokens[$docCommentStartPointer]['content'] === '/***/') { - $phpcsFile->fixer->beginChangeset(); - - $phpcsFile->fixer->replaceToken($docCommentStartPointer, '/**'); - $phpcsFile->fixer->addNewline($docCommentStartPointer); - $phpcsFile->fixer->addContent($docCommentStartPointer, $indent); - $phpcsFile->fixer->addContent($docCommentStartPointer, '*'); - $phpcsFile->fixer->addNewline($docCommentStartPointer); - $phpcsFile->fixer->addContent($docCommentStartPointer, $indent); - $phpcsFile->fixer->addContent($docCommentStartPointer, '*/'); - - $phpcsFile->fixer->endChangeset(); - - return; - } - $phpcsFile->fixer->beginChangeset(); $phpcsFile->fixer->addNewline($docCommentStartPointer); diff --git a/composer.json b/composer.json index b1eb9a5df..8c31461f1 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "php": "^7.4 || ^8.0", "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0", "phpstan/phpdoc-parser": "^2.0", - "squizlabs/php_codesniffer": "^3.9.0" + "squizlabs/php_codesniffer": "^3.10.0" }, "require-dev": { "phing/phing": "2.17.4",