1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Allow suppression of InvalidToString

This commit is contained in:
Matthew Brown 2017-11-21 21:53:12 -05:00
parent e3b688b06d
commit df06c64b3e

View File

@ -921,7 +921,8 @@ abstract class FunctionLikeChecker extends SourceChecker implements StatementsSo
new InvalidToString( new InvalidToString(
'__toString methods must return a string, ' . $inferred_return_type . ' returned', '__toString methods must return a string, ' . $inferred_return_type . ' returned',
$secondary_return_type_location ?: $return_type_location $secondary_return_type_location ?: $return_type_location
) ),
$this->suppressed_issues
)) { )) {
return false; return false;
} }