protected function parseAllocationExpressionTypeReference(ASTAllocationExpression $allocation) { if ($newAllocation = $this->parseAnonymousClassDeclaration($allocation)) { return $newAllocation; } return parent::parseAllocationExpressionTypeReference($allocation); }