From eff5683351259c4c98c848b8b5c88084851da35c Mon Sep 17 00:00:00 2001 From: Benedikt Bleimhofer Date: Wed, 4 Dec 2024 08:15:31 +0100 Subject: [PATCH] fix php enum allowable values delimiter generation --- src/main/resources/handlebars/php/model_enum.mustache | 2 +- src/main/resources/handlebars/php/model_generic.mustache | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}} ];