File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -118,9 +118,14 @@ public function renderArgumentType()
118118 public function renderPhpDocValue ($ withName = false )
119119 {
120120 $ tagValue = '' ;
121+ $ phpDocType = '' ;
121122 if ($ this ->type ) {
122- $ tagValue . = $ this ->type ->renderPhpDocType ();
123+ $ phpDocType = $ this ->type ->renderPhpDocType ();
123124 }
125+ if (!trim ($ phpDocType )) {
126+ $ phpDocType = PhpStdType::TYPE_MIXED ;
127+ }
128+ $ tagValue .= $ phpDocType ;
124129 if ($ withName ) {
125130 $ tagValue .= ' $ ' . $ this ->name ;
126131 }
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public function renderPhpDocType()
4444 if ($ this ->type instanceof OrType) {
4545 return $ this ->type ->renderArrayPhpDocType ();
4646 } elseif ($ this ->type === PhpStdType::mixed ()) {
47- return '' ;
47+ return 'array ' ;
4848 } else {
4949 return $ this ->type ->renderPhpDocType () . '[] ' ;
5050 }
You can’t perform that action at this time.
0 commit comments