Skip to content

Commit

Permalink
removed decrement of rvalue-pointer (google#8067)
Browse files Browse the repository at this point in the history
Co-authored-by: Derek Bailey <[email protected]>
  • Loading branch information
2 people authored and Jochen Parmentier committed Oct 29, 2024
1 parent 7a6850b commit 9aa36aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/idl_gen_php.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,8 @@ class PhpGenerator : public BaseGenerator {
auto &field = **it;

if (field.deprecated) continue;
if (it != struct_def.fields.vec.begin()) { code += ", "; }
code += "$" + field.name;
if (!(it == (--struct_def.fields.vec.end()))) { code += ", "; }
}
code += ")\n";
code += Indent + "{\n";
Expand Down

0 comments on commit 9aa36aa

Please sign in to comment.