(new MyClass())->bar();
protected function parseParenthesisExpressionOrPrimaryPrefix() { $expr = $this->parseParenthesisExpression(); $this->consumeComments(); if (Tokens::T_OBJECT_OPERATOR === $this->tokenizer->peek()) { return $this->parseMemberPrimaryPrefix($expr->getChild(0)); } return $expr; }