1313use phpDocumentor \Reflection \DocBlock \Tags \PropertyRead ;
1414use phpDocumentor \Reflection \DocBlock \Tags \PropertyWrite ;
1515use phpDocumentor \Reflection \Php \Class_ ;
16+ use yii \apidoc \helpers \TypeHelper ;
1617use yii \helpers \StringHelper ;
1718
1819/**
@@ -212,7 +213,7 @@ public function __construct($reflector = null, $context = null, $config = [])
212213 'visibility ' => 'public ' ,
213214 'definedBy ' => $ this ->name ,
214215 'type ' => (string ) $ tag ->getType (),
215- 'types ' => $ this -> splitTypes ($ tag ->getType ()),
216+ 'types ' => TypeHelper:: splitType ($ tag ->getType ()),
216217 'shortDescription ' => $ shortDescription ,
217218 'description ' => $ tag ->getDescription (),
218219 ]);
@@ -229,9 +230,8 @@ public function __construct($reflector = null, $context = null, $config = [])
229230 $ params [] = new ParamDoc (null , $ context , [
230231 'sourceFile ' => $ this ->sourceFile ,
231232 'name ' => $ parameter ->getName (),
232- 'typeHint ' => (string ) $ argumentType ,
233233 'type ' => (string ) $ argumentType ,
234- 'types ' => $ this -> splitTypes ($ argumentType ),
234+ 'types ' => TypeHelper:: splitType ($ argumentType ),
235235 ]);
236236 }
237237
@@ -249,7 +249,7 @@ public function __construct($reflector = null, $context = null, $config = [])
249249 'isStatic ' => $ tag ->isStatic (),
250250 'return ' => ' ' ,
251251 'returnType ' => (string ) $ tag ->getReturnType (),
252- 'returnTypes ' => $ this -> splitTypes ($ tag ->getReturnType ()),
252+ 'returnTypes ' => TypeHelper:: splitType ($ tag ->getReturnType ()),
253253 ]);
254254 $ method ->definedBy = $ this ->name ;
255255 $ this ->methods [$ method ->name ] = $ method ;
0 commit comments