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.
2 parents 2297567 + 6eb2c97 commit 2a1ff55Copy full SHA for 2a1ff55
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