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:
parent
989c3ada2e
commit
603e1c944b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user