mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 02:15:17 +00:00
THRIFT-5753 PHP 8.1 deprecated warning about return type in jsonSerialize functions
This commit is contained in:
parent
8238364c6b
commit
7507fa01c2
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user