File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ public function getTypeName($type)
130
130
case self ::TYPE_ARRAY :
131
131
return 'string[] ' ;
132
132
case self ::TYPE_FILE :
133
- return 'string ' ;
133
+ return 'File ' ;
134
134
break ;
135
135
}
136
136
Original file line number Diff line number Diff line change @@ -12,6 +12,27 @@ public function getName()
12
12
return 'NodeJS ' ;
13
13
}
14
14
15
+ /**
16
+ * @param $type
17
+ * @return string
18
+ */
19
+ public function getTypeName ($ type )
20
+ {
21
+ switch ($ type ) {
22
+ case self ::TYPE_INTEGER :
23
+ case self ::TYPE_NUMBER :
24
+ return 'number ' ;
25
+ break ;
26
+ case self ::TYPE_ARRAY :
27
+ return 'string[] ' ;
28
+ case self ::TYPE_FILE :
29
+ return 'string ' ;
30
+ break ;
31
+ }
32
+
33
+ return $ type ;
34
+ }
35
+
15
36
/**
16
37
* @return array
17
38
*/
You can’t perform that action at this time.
0 commit comments