From a2f415e2e0d04e695655f4a9c996dec6b662cc00 Mon Sep 17 00:00:00 2001 From: orklah Date: Sat, 9 Oct 2021 17:58:06 +0200 Subject: [PATCH] fix @return 0 --- .../PhpVisitor/Reflector/FunctionLikeDocblockScanner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockScanner.php b/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockScanner.php index f20838d88..b61bfb4e8 100644 --- a/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockScanner.php +++ b/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockScanner.php @@ -355,7 +355,7 @@ class FunctionLikeDocblockScanner } } - if ($docblock_info->return_type) { + if ($docblock_info->return_type !== null) { self::handleReturn( $codebase, $docblock_info,