File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ private function generateAttributes(): array
240
240
return ['comments ' => [new Doc ($ this ->docBlock ->generate ())]];
241
241
}
242
242
243
- if ($ this ->typed === false || $ this ->docBlockComment || $ this ->returnTypeDocBlockHint ) {
243
+ if ($ this ->typed === false || $ this ->docBlockComment !== null || $ this ->returnTypeDocBlockHint !== null ) {
244
244
$ docBlock = new DocBlock ($ this ->docBlockComment );
245
245
246
246
foreach ($ this ->getParameters () as $ parameter ) {
@@ -260,10 +260,10 @@ private function generateAttributes(): array
260
260
if ($ this ->returnType ) {
261
261
$ returnType = $ this ->returnType ->type ();
262
262
}
263
- if ($ this ->returnTypeDocBlockHint ) {
263
+ if ($ this ->returnTypeDocBlockHint !== null ) {
264
264
$ returnType = $ this ->returnTypeDocBlockHint ;
265
265
}
266
- if ($ returnType ) {
266
+ if ($ returnType !== null ) {
267
267
$ docBlock ->addTag (new ReturnTag ($ returnType ));
268
268
}
269
269
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ private function generateAttributes(): array
180
180
return ['comments ' => [new Doc ($ this ->docBlock ->generate ())]];
181
181
}
182
182
183
- if ($ this ->typed === false || $ this ->docBlockComment ) {
183
+ if ($ this ->typed === false || $ this ->docBlockComment !== null ) {
184
184
$ docBlockType = new VarTag ($ this ->type ->types ());
185
185
186
186
if ($ typeHint = $ this ->getTypeDocBlockHint ()) {
You can’t perform that action at this time.
0 commit comments