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:
parent
f73fc7c6eb
commit
d7e2c5ee3c
@ -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
|
||||
)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user