Skip to content

Commit

Permalink
fix php enum allowable values delimiter generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Bleimhofer committed Dec 4, 2024
1 parent ffce5a1 commit eff5683
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/handlebars/php/model_enum.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class {{classname}}
return [
{{#allowableValues}}
{{#enumVars}}
self::{{{name}}}{{#hasMore}},{{/hasMore}}
self::{{{name}}}{{^@last}},{{/@last}}
{{/enumVars}}
{{/allowableValues}}
];
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/handlebars/php/model_generic.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
];
Expand Down

0 comments on commit eff5683

Please # to comment.