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

Fix type coercion

This commit is contained in:
Matthew Brown 2020-05-17 22:51:48 -04:00
parent 3ecef8bee7
commit b0ffaf0077

View File

@ -590,6 +590,7 @@ class ReturnAnalyzer
* If a function returns a closure, we try to infer the param/return types of
* the inner closure.
* @see \Psalm\Tests\ReturnTypeTest:756
* @param PhpParser\Node\Expr\Closure|PhpParser\Node\Expr\ArrowFunction $expr
*/
private static function potentiallyInferTypesOnClosureFromParentReturnType(
StatementsAnalyzer $statements_analyzer,