Skip to content

Commit 96f00e7

Browse files
committed
AC-1339: Detect comment for typed class properties
1 parent 0c5c0f3 commit 96f00e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Magento2/Sniffs/Commenting/ClassPropertyPHPDocFormattingSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function processMemberVar(File $phpcsFile, $stackPtr)
6060

6161
if ($commentEnd !== false && $tokens[$commentEnd]['code'] === T_STRING) {
6262
$commentEnd = $phpcsFile->findPrevious($this->ignoreTokens, ($commentEnd - 1), null, true);
63-
} else if ($commentEnd === false
63+
} elseif ($commentEnd === false
6464
|| ($tokens[$commentEnd]['code'] !== T_DOC_COMMENT_CLOSE_TAG
6565
&& $tokens[$commentEnd]['code'] !== T_COMMENT)
6666
) {

0 commit comments

Comments
 (0)