Skip to content

Commit

Permalink
THRIFT-5753 PHP 8.1 deprecated warning about return type in jsonSeria…
Browse files Browse the repository at this point in the history
…lize functions
  • Loading branch information
pkvach authored and Jens-G committed Jan 19, 2024
1 parent 8238364 commit 7507fa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/cpp/src/thrift/generate/t_php_generator.cc
Expand Up @@ -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();

Expand Down

0 comments on commit 7507fa0

Please sign in to comment.