Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Aug 30, 2018
1 parent 7592b77 commit d6d531b
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -11,6 +11,7 @@
use const T_DOC_COMMENT_STAR;
use const T_DOC_COMMENT_WHITESPACE;
use const T_WHITESPACE;
use function array_merge;
use function in_array;
use function preg_match;

Expand Down Expand Up @@ -51,6 +52,7 @@ public function process(File $phpcsFile, $docCommentOpenPointer): void
return;
}

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

0 comments on commit d6d531b

Please sign in to comment.