1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

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

This commit is contained in:
Brown 2019-11-14 14:33:07 -05:00
parent d5b90f6887
commit b3a15e8016

View File

@ -192,7 +192,8 @@ class ReturnTypeAnalyzer
$cased_method_id . ' is not expected to return any values but it does, '
. 'either implicitly or explicitly',
$return_type_location
)
),
$source->getSuppressedIssues()
)) {
return false;
}