File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -157,4 +157,9 @@ private function getInnerXml(\SimpleXMLElement $SimpleXMLElement): string
157
157
$ inner_xml = trim ($ inner_xml );
158
158
return $ inner_xml ;
159
159
}
160
+
161
+ public function isTypeable (): bool
162
+ {
163
+ return $ this ->getType () !== 'mixed ' && $ this ->getType () !== 'resource ' && \count (\explode ("| " , $ this ->getType ())) < 2 ;
164
+ }
160
165
}
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ private function displayParamsWithType(array $params): string
142
142
143
143
foreach ($ params as $ param ) {
144
144
$ paramAsString = '' ;
145
- if ($ param ->getType () !== ' mixed ' && $ param -> getType () !== ' resource ' ) {
145
+ if ($ param ->isTypeable () ) {
146
146
if ($ param ->isNullable ()) {
147
147
$ paramAsString .= '? ' ;
148
148
}
You can’t perform that action at this time.
0 commit comments