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 <derekbailey@google.com>
  • Loading branch information
2 people authored and candysonya committed Jan 8, 2024
1 parent c3eb1a7 commit f3e8f39
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 f3e8f39

Please sign in to comment.