mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fix tests
This commit is contained in:
parent
82a85791f2
commit
37e238a68b
@ -197,12 +197,12 @@ class CallableTest extends TestCase
|
||||
$e = array_map([$a_instance, "bar"], ["one", "two"]);
|
||||
$f = array_map("baz", ["one", "two"]);',
|
||||
'assertions' => [
|
||||
'$a' => 'array{0: string, 1: string}',
|
||||
'$b' => 'array{0: string, 1: string}',
|
||||
'$c' => 'array{0: string, 1: string}',
|
||||
'$d' => 'array{0: string, 1: string}',
|
||||
'$e' => 'array{0: string, 1: string}',
|
||||
'$f' => 'array{0: string, 1: string}',
|
||||
'$a' => 'array{string, string}',
|
||||
'$b' => 'array{string, string}',
|
||||
'$c' => 'array{string, string}',
|
||||
'$d' => 'array{string, string}',
|
||||
'$e' => 'array{string, string}',
|
||||
'$f' => 'array{string, string}',
|
||||
],
|
||||
],
|
||||
'arrayCallableMethod' => [
|
||||
|
@ -87,7 +87,7 @@ class ClosureTest extends TestCase
|
||||
$mirror = function(int $i) : int { return $i; };
|
||||
$a = array_map($mirror, [1, 2, 3]);',
|
||||
'assertions' => [
|
||||
'$a' => 'array{0: int, 1: int, 2: int}',
|
||||
'$a' => 'array{int, int, int}',
|
||||
],
|
||||
],
|
||||
'inlineCallableFunction' => [
|
||||
|
Loading…
Reference in New Issue
Block a user