@@ -5641,7 +5641,7 @@ void t_hack_generator::_generate_sendImplHelper(
56415641 const t_service* tservice) {
56425642 std::string long_name = php_servicename_mangle (mangled_services_, tservice);
56435643 const std::string& tservice_name =
5644- (tservice->is_interaction ()
5644+ (tservice->is <t_interaction> ()
56455645 ? " \" " + service_name_ + " \" "
56465646 : long_name + " StaticMetadata::THRIFT_SVC_NAME" );
56475647 out << " $this->sendImplHelper($args, " << " \" " << find_hack_name (tfunction)
@@ -6946,7 +6946,7 @@ void t_hack_generator::_generate_current_seq_id(
69466946 std::ofstream& out,
69476947 const t_service* tservice,
69486948 const t_function* tfunction) {
6949- if (tservice->is_interaction ()) {
6949+ if (tservice->is <t_interaction> ()) {
69506950 indent (out) << " $currentseqid = $this->sendImpl_" << tfunction->name ()
69516951 << " (" ;
69526952
@@ -6970,7 +6970,7 @@ void t_hack_generator::_generate_sendImpl(
69706970 const std::string& rpc_function_name =
69716971 generate_rpc_function_name (tservice, tfunction);
69726972 const std::string& tservice_name =
6973- (tservice->is_interaction () ? service_name_ : tservice->name ());
6973+ (tservice->is <t_interaction> () ? service_name_ : tservice->name ());
69746974
69756975 if (nullable_everything_) {
69766976 indent (out) << " protected function sendImpl_" << funname << " ("
@@ -7199,7 +7199,7 @@ void t_hack_generator::_generate_service_client_child_fn(
71997199 find_hack_name (tfunction) + (legacy_arrays ? " __LEGACY_ARRAYS" : " " );
72007200 std::string long_name = php_servicename_mangle (mangled_services_, tservice);
72017201 const std::string& tservice_name =
7202- (tservice->is_interaction ()
7202+ (tservice->is <t_interaction> ()
72037203 ? " \" " + service_name_ + " \" "
72047204 : long_name + " StaticMetadata::THRIFT_SVC_NAME" );
72057205 std::string return_typehint =
@@ -7246,11 +7246,11 @@ void t_hack_generator::_generate_service_client_child_fn(
72467246 }
72477247
72487248 indent (out) << " $rpc_options = $this->getAndResetOptions() ?? "
7249- << (tservice->is_interaction ()
7249+ << (tservice->is <t_interaction> ()
72507250 ? " new \\ RpcOptions()"
72517251 : " \\ ThriftClientBase::defaultOptions()" )
72527252 << " ;\n " ;
7253- if (tservice->is_interaction ()) {
7253+ if (tservice->is <t_interaction> ()) {
72547254 indent (out) << " $rpc_options = "
72557255 " $rpc_options->setInteractionId($this->interactionId);\n " ;
72567256 }
@@ -7308,7 +7308,7 @@ void t_hack_generator::_generate_service_client_stream_child_fn(
73087308 std::string funname =
73097309 tfunction->name () + (legacy_arrays ? " __LEGACY_ARRAYS" : " " );
73107310 const std::string& tservice_name =
7311- (tservice->is_interaction () ? service_name_ : tservice->name ());
7311+ (tservice->is <t_interaction> () ? service_name_ : tservice->name ());
73127312 std::string return_typehint = get_stream_function_return_typehint (tfunction);
73137313
73147314 generate_php_docstring (out, tfunction);
@@ -7327,11 +7327,11 @@ void t_hack_generator::_generate_service_client_stream_child_fn(
73277327 indent (out) << " }\n " ;
73287328
73297329 indent (out) << " $rpc_options = $this->getAndResetOptions() ?? "
7330- << (tservice->is_interaction ()
7330+ << (tservice->is <t_interaction> ()
73317331 ? " new \\ RpcOptions()"
73327332 : " \\ ThriftClientBase::defaultOptions()" )
73337333 << " ;\n " ;
7334- if (tservice->is_interaction ()) {
7334+ if (tservice->is <t_interaction> ()) {
73357335 indent (out) << " $rpc_options = "
73367336 " $rpc_options->setInteractionId($this->interactionId);\n " ;
73377337 }
@@ -7367,7 +7367,7 @@ void t_hack_generator::_generate_service_client_sink_child_fn(
73677367 std::string funname =
73687368 tfunction->name () + (legacy_arrays ? " __LEGACY_ARRAYS" : " " );
73697369 const std::string& tservice_name =
7370- (tservice->is_interaction () ? service_name_ : tservice->name ());
7370+ (tservice->is <t_interaction> () ? service_name_ : tservice->name ());
73717371
73727372 generate_php_docstring (out, tfunction);
73737373 std::string return_typehint = get_sink_function_return_typehint (tfunction);
@@ -7386,11 +7386,11 @@ void t_hack_generator::_generate_service_client_sink_child_fn(
73867386 indent (out) << " }\n " ;
73877387
73887388 indent (out) << " $rpc_options = $this->getAndResetOptions() ?? "
7389- << (tservice->is_interaction ()
7389+ << (tservice->is <t_interaction> ()
73907390 ? " new \\ RpcOptions()"
73917391 : " \\ ThriftClientBase::defaultOptions()" )
73927392 << " ;\n " ;
7393- if (tservice->is_interaction ()) {
7393+ if (tservice->is <t_interaction> ()) {
73947394 out << " $rpc_options->setInteractionId($this->interactionId);\n " ;
73957395 }
73967396
@@ -7551,7 +7551,8 @@ std::string t_hack_generator::argument_list(
75517551 */
75527552std::string t_hack_generator::generate_rpc_function_name (
75537553 const t_service* tservice, const t_function* tfunction) const {
7554- std::string prefix = tservice->is_interaction () ? tservice->name () + " ." : " " ;
7554+ std::string prefix =
7555+ tservice->is <t_interaction>() ? tservice->name () + " ." : " " ;
75557556 return prefix + find_hack_name (tfunction);
75567557}
75577558
@@ -7564,7 +7565,7 @@ std::string t_hack_generator::generate_function_helper_name(
75647565 const t_function* tfunction,
75657566 PhpFunctionNameSuffix suffix) {
75667567 std::string prefix;
7567- if (tservice->is_interaction ()) {
7568+ if (tservice->is <t_interaction> ()) {
75687569 prefix = hack_name (service_name_, program_) + " _" + tservice->name ();
75697570 } else {
75707571 prefix = hack_name (tservice);
0 commit comments