We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14704dd commit 6570218Copy full SHA for 6570218
Magento2/Sniffs/Commenting/ClassPropertyPHPDocFormattingSniff.php
@@ -60,12 +60,9 @@ public function processMemberVar(File $phpcsFile, $stackPtr)
60
61
if ($commentEnd !== false && $tokens[$commentEnd]['code'] === T_STRING) {
62
$commentEnd = $phpcsFile->findPrevious($this->ignoreTokens, ($commentEnd - 1), null, true);
63
- }
64
-
65
- if ($commentEnd === false
+ } else if ($commentEnd === false
66
|| ($tokens[$commentEnd]['code'] !== T_DOC_COMMENT_CLOSE_TAG
67
- && $tokens[$commentEnd]['code'] !== T_COMMENT
68
- && $tokens[$commentEnd]['code'] !== T_STRING)
+ && $tokens[$commentEnd]['code'] !== T_COMMENT)
69
) {
70
$phpcsFile->addWarning('Missing PHP DocBlock for class property.', $stackPtr, 'Missing');
71
return;
0 commit comments