We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 257481b commit 5abfebeCopy full SHA for 5abfebe
templates/cli/lib/type-generation/languages/php.js.twig
@@ -53,9 +53,9 @@ use Appwrite\\Models\\<%- toPascalCase(attribute.relatedCollection) %>;
53
<% } -%>
54
<% for (const attribute of collection.attributes) { -%>
55
<% if (attribute.format === 'enum') { -%>
56
-enum <%- toPascalCase(attribute.key) %> {
+enum <%- toPascalCase(attribute.key) %>: string {
57
<% for (const [index, element] of Object.entries(attribute.elements)) { -%>
58
- case <%- toUpperSnakeCase(element) %> = "<%- element %>";
+ case <%- toUpperSnakeCase(element) %> = '<%- element %>';
59
60
}
61
0 commit comments