Skip to content

Commit d6d531b

Browse files
committed
Fixed build
1 parent 7592b77 commit d6d531b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SlevomatCodingStandard/Sniffs/Commenting/UselessInheritDocCommentSniff.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use const T_DOC_COMMENT_STAR;
1212
use const T_DOC_COMMENT_WHITESPACE;
1313
use const T_WHITESPACE;
14+
use function array_merge;
1415
use function in_array;
1516
use function preg_match;
1617

@@ -51,6 +52,7 @@ public function process(File $phpcsFile, $docCommentOpenPointer): void
5152
return;
5253
}
5354

55+
/** @var int $docCommentOwnerPointer */
5456
$docCommentOwnerPointer = TokenHelper::findNext($phpcsFile, array_merge(TokenHelper::$functionTokenCodes, TokenHelper::$typeHintTokenCodes), $tokens[$docCommentOpenPointer]['comment_closer'] + 1);
5557
if (in_array($tokens[$docCommentOwnerPointer]['code'], TokenHelper::$functionTokenCodes, true)) {
5658
$returnTypeHint = FunctionHelper::findReturnTypeHint($phpcsFile, $docCommentOwnerPointer);

0 commit comments

Comments
 (0)