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 225878e commit 6eb2c97Copy full SHA for 6eb2c97
Symfony3Custom/Sniffs/Commenting/DocCommentGroupSameTypeSniff.php
@@ -87,7 +87,8 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
87
$previousLine = max($previousStringLine, $previousTagLine);
88
89
$currentIsCustom = ! in_array($currentType, $this->tags);
90
- $previousIsCustom = ! in_array($previousType, $this->tags);
+ $previousIsCustom = ($previousType !== '')
91
+ && ! in_array($previousType, $this->tags);
92
93
if (($previousType === $currentType)
94
|| ($currentIsCustom && $previousIsCustom)
0 commit comments