Skip to content

Commit 5abfebe

Browse files
Chirag AggarwalChirag Aggarwal
authored andcommitted
fix: php enum typing
1 parent 257481b commit 5abfebe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/cli/lib/type-generation/languages/php.js.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ use Appwrite\\Models\\<%- toPascalCase(attribute.relatedCollection) %>;
5353
<% } -%>
5454
<% for (const attribute of collection.attributes) { -%>
5555
<% if (attribute.format === 'enum') { -%>
56-
enum <%- toPascalCase(attribute.key) %> {
56+
enum <%- toPascalCase(attribute.key) %>: string {
5757
<% for (const [index, element] of Object.entries(attribute.elements)) { -%>
58-
case <%- toUpperSnakeCase(element) %> = "<%- element %>";
58+
case <%- toUpperSnakeCase(element) %> = '<%- element %>';
5959
<% } -%>
6060
}
6161

0 commit comments

Comments
 (0)