Skip to content

Commit 6367c57

Browse files
authored
Merge pull request #878 from appwrite/fix-php-float
Fix PHP numbers typed as int
2 parents 8a8e12f + f2a2f7c commit 6367c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SDK/Language/PHP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function getTypeName(array $parameter, array $spec = []): string
261261
return match ($parameter['type']) {
262262
self::TYPE_STRING => 'string',
263263
self::TYPE_BOOLEAN => 'bool',
264-
self::TYPE_NUMBER,
264+
self::TYPE_NUMBER => 'float',
265265
self::TYPE_INTEGER => 'int',
266266
self::TYPE_ARRAY,
267267
self::TYPE_OBJECT => 'array',

0 commit comments

Comments
 (0)