Skip to content
Permalink
Browse files

Fix #2349 - allow suppression of InvalidReturnType for no-return

  • Loading branch information
muglug committed Nov 14, 2019
1 parent d5b90f6 commit b3a15e80166395a73ebbfd7c7a76fcbbe893e03e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Psalm/Internal/Analyzer/FunctionLike/ReturnTypeAnalyzer.php
@@ -192,7 +192,8 @@ public static function verifyReturnType(
$cased_method_id . ' is not expected to return any values but it does, '
. 'either implicitly or explicitly',
$return_type_location
)
),
$source->getSuppressedIssues()
)) {
return false;
}

0 comments on commit b3a15e8

Please sign in to comment.
You can’t perform that action at this time.