Skip to content

Commit 1025ff1

Browse files
committed
[ci-review] Rector Rectify
1 parent a667cc7 commit 1025ff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct(
6363

6464
public function decorateReturn(ClassMethod|Function_|Closure|ArrowFunction $functionLike): void
6565
{
66-
if ($functionLike->returnType === null) {
66+
if (! $functionLike->returnType instanceof Node) {
6767
return;
6868
}
6969

@@ -159,7 +159,7 @@ public function decorateReturnWithSpecificType(
159159
ClassMethod|Function_|Closure|ArrowFunction $functionLike,
160160
Type $requireType
161161
): bool {
162-
if ($functionLike->returnType === null) {
162+
if (! $functionLike->returnType instanceof Node) {
163163
return false;
164164
}
165165

0 commit comments

Comments
 (0)