----------- foreach ( $array as &$this->foo ) } ----------- ---------- $foo = &$bar->baz; ----------
private function parseVariableOrMemberByReference() { $this->tokenStack->push(); $token = $this->consumeToken(Tokens::T_BITWISE_AND); $this->consumeComments(); $expr = $this->builder->buildAstUnaryExpression($token->image); $expr->addChild($this->parseVariableOrConstantOrPrimaryPrefix()); return $this->setNodePositionsAndReturn($expr); }