Skip to content

Commit ce18b20

Browse files
committed
Fix PHPStan
1 parent b539c12 commit ce18b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PhpCollective/Sniffs/Commenting/InlineDocBlockSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ protected function findErrors(File $phpCsFile, int $contentIndex, bool $isSingle
199199
}
200200

201201
preg_match('#^(.+?)(\s+)(.+?)\s*$#', $comment, $contentMatches);
202-
if (!$contentMatches || !$contentMatches[1] || !$contentMatches[3]) {
202+
if (!$contentMatches || empty($contentMatches[1]) || empty($contentMatches[2]) || empty($contentMatches[3])) {
203203
if ($this->hasReturnAsFollowingToken($phpCsFile, $contentIndex)) {
204204
return [];
205205
}

0 commit comments

Comments
 (0)