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:
parent
3ecef8bee7
commit
b0ffaf0077
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user