objects; } /** @inheritDoc */ public function toComponentValueArray() { // This one, though, is complicated $parser = Parser::newFromTokens( $this->objects ); $ret = $parser->parseComponentValueList(); if ( $parser->getParseErrors() ) { $ex = new UnexpectedValueException( 'TokenList cannot be converted to a ComponentValueList' ); // @phan-suppress-next-line PhanUndeclaredProperty $ex->parseErrors = $parser->getParseErrors(); throw $ex; } return $ret->toComponentValueArray(); } }