protected function parseReturnTypeHint()
{
$this->consumeComments();
switch ($tokenType = $this->tokenizer->peek()) {
case Tokens::T_ARRAY:
$type = $this->parseArrayType();
break;
case Tokens::T_SELF:
$type = $this->parseSelfType();
break;
case Tokens::T_PARENT:
$type = $this->parseParentType();
break;
default:
$type = $this->parseTypeHint();
break;
}
return $type;
}