From 3c35a143eac33ae2574141911f5b4335472cbc06 Mon Sep 17 00:00:00 2001 From: Artem Shilkin <89970996+reshilkin@users.noreply.github.com> Date: Fri, 29 Sep 2023 17:34:16 +0300 Subject: [PATCH] removed decrement of rvalue-pointer (#8067) Co-authored-by: Derek Bailey --- src/idl_gen_php.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/idl_gen_php.cpp b/src/idl_gen_php.cpp index 1a6b9ec5c06..16ba3385e9a 100644 --- a/src/idl_gen_php.cpp +++ b/src/idl_gen_php.cpp @@ -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";