Skip to content

Commit 1eab080

Browse files
committed
fix: php and swift
1 parent 65a27c3 commit 1eab080

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ class PHP extends LanguageMeta {
4040
return `<?php
4141
namespace Appwrite\\Models;
4242
43-
use Appwrite\\Models\\Document;
44-
45-
class <%- toPascalCase(collection.name) %> extends Document {
43+
class <%- toPascalCase(collection.name) %> {
4644
<% for (const attribute of collection.attributes ){ -%>
4745
public <%- getType(attribute) %> $<%- toCamelCase(attribute.key) %>;
4846
<% } -%>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import Codable
4242

4343
public class <%- toPascalCase(collection.name) %>: Codable {
4444
<% for (const attribute of collection.attributes) { -%>
45-
public var <%- toCamelCase(attribute.key) %>: <%- getType(attribute) %>
45+
public let <%- toCamelCase(attribute.key) %>: <%- getType(attribute) %>
4646
<% } %>
4747
enum CodingKeys: String, CodingKey {
4848
<% for (const attribute of collection.attributes) { -%>

0 commit comments

Comments
 (0)