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:
parent
d5b90f6887
commit
b3a15e8016
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user