1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Fix tests

This commit is contained in:
Brown 2020-07-07 10:41:46 -04:00
parent 82a85791f2
commit 37e238a68b
2 changed files with 7 additions and 7 deletions

View File

@ -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' => [

View File

@ -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' => [