Skip to content

Commit

Permalink
Merge branch 'master' into fix-ambig
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaileychess authored Sep 29, 2023
2 parents 90c2372 + 3c35a14 commit 610f172
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 610f172

Please sign in to comment.