src/Fixer/FunctionNotation/VoidReturnFixer.php
private function hasVoidReturnAnnotation(Tokens $tokens, $index)
    {
        foreach ($this->findReturnAnnotations($tokens, $index) as $return) {
            if (['void'] === $return->getTypes()) {
                return true;
            }
        }

        return false;
    }
private function hasVoidReturnAnnotation(Tokens $tokens, $index)
    {
        foreach ($this->findReturnAnnotations($tokens, $index) as $return) {
            if (['void'] === $return->getTypes()) {
                return true;
            }
        }

        return false;
    }
Determine whether there is a void return annotation in the function's PHPDoc comment.

@param Tokens $tokens
@param int    $index  The index of the function token

@return bool