1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Don’t emit InvalidReturnType when we don’t care about nullability

This commit is contained in:
Matt Brown 2017-05-10 13:52:24 -04:00
parent f73fc7c6eb
commit d7e2c5ee3c

View File

@ -1134,7 +1134,7 @@ abstract class FunctionLikeChecker extends SourceChecker implements StatementsSo
$inferred_return_type,
$declared_return_type,
$this->getFileChecker(),
false,
$declared_return_type->ignore_nullable_issues,
$has_scalar_match,
$type_coerced
)) {