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