1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Fix type inference of closure params

This commit is contained in:
adrew 2021-12-11 22:51:18 +03:00
parent 989c3ada2e
commit 603e1c944b

View File

@ -70,7 +70,7 @@ class CallableTest extends TestCase
/**
* @param Closure(int, int): int $_fn
*/
public function __invoke(Closure $_fn): void
public function __invoke(Closure $_fn): int
{
return $_fn(42, 42);
}