We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a667cc7 commit 1025ff1Copy full SHA for 1025ff1
src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php
@@ -63,7 +63,7 @@ public function __construct(
63
64
public function decorateReturn(ClassMethod|Function_|Closure|ArrowFunction $functionLike): void
65
{
66
- if ($functionLike->returnType === null) {
+ if (! $functionLike->returnType instanceof Node) {
67
return;
68
}
69
@@ -159,7 +159,7 @@ public function decorateReturnWithSpecificType(
159
ClassMethod|Function_|Closure|ArrowFunction $functionLike,
160
Type $requireType
161
): bool {
162
163
return false;
164
165
0 commit comments