diff --git a/src/main/resources/handlebars/php/model_enum.mustache b/src/main/resources/handlebars/php/model_enum.mustache index aa7c53a213..6232c635b2 100644 --- a/src/main/resources/handlebars/php/model_enum.mustache +++ b/src/main/resources/handlebars/php/model_enum.mustache @@ -17,7 +17,7 @@ class {{classname}} return [ {{#allowableValues}} {{#enumVars}} - self::{{{name}}}{{#hasMore}},{{/hasMore}} + self::{{{name}}}{{^@last}},{{/@last}} {{/enumVars}} {{/allowableValues}} ]; diff --git a/src/main/resources/handlebars/php/model_generic.mustache b/src/main/resources/handlebars/php/model_generic.mustache index 1d90022070..7ca0260f51 100644 --- a/src/main/resources/handlebars/php/model_generic.mustache +++ b/src/main/resources/handlebars/php/model_generic.mustache @@ -148,7 +148,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}{{^pa return [ {{#allowableValues}} {{#enumVars}} - self::{{enumName}}_{{{name}}}{{#hasMore}},{{/hasMore}} + self::{{enumName}}_{{{name}}}{{^@last}},{{/@last}} {{/enumVars}} {{/allowableValues}} ];