THRIFT-5753 PHP 8.1 deprecated warning about return type in jsonSerialize functions

This commit is contained in:
Pavel Kvach 2024-01-11 10:01:01 +02:00 committed by Jens Geyer
parent 8238364c6b
commit 7507fa01c2

View File

@ -1285,6 +1285,7 @@ void t_php_generator::generate_php_struct_required_validator(ostream& out,
void t_php_generator::generate_php_struct_json_serialize(ostream& out,
t_struct* tstruct,
bool is_result) {
indent(out) << "#[\\ReturnTypeWillChange]" << endl;
indent(out) << "public function jsonSerialize() {" << endl;
indent_up();