Skip to content

Commit f2a2f7c

Browse files
committed
Fix PHP numbers typed as int
1 parent 8a8e12f commit f2a2f7c

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)