Skip to content

Commit 2a87f46

Browse files
committed
Update tests.
1 parent a5e63f6 commit 2a87f46

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

tests/src/BadCombinator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
use loophp\combinator\Combinator;
88

9+
/**
10+
* Class BadCombinator.
11+
*
12+
* @psalm-immutable
13+
*/
914
class BadCombinator extends Combinator
1015
{
1116
}

tests/static-analysis/A.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/**
1010
* @param callable(int): string $f
11-
* @param string $x
11+
* @param int $x
1212
*
1313
* @return string
1414
*/

tests/static-analysis/K.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @param string $x
1111
* @param int $y
1212
*
13-
* @return int
13+
* @return string
1414
*/
1515
function test($x, $y)
1616
{

tests/static-analysis/U.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use loophp\combinator\Combinator\U as Combinator;
88

99
/**
10-
* @param callable(int): mixed $f
10+
* @param callable(callable):callable $f
1111
* @param callable(int): mixed $g
1212
*
1313
* @return mixed

tests/static-analysis/Y.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44

55
namespace loophp\combinator\Tests\StaticAnalysis;
66

7+
use Closure;
78
use loophp\combinator\Combinator\Y as Combinator;
89

910
/**
10-
* @param callable(int): callable $f
11+
* @param callable(callable): Closure $f
1112
*
12-
* @return callable
13+
* @return Closure
1314
*/
14-
function test(callable $f)
15+
function test(callable $f): Closure
1516
{
1617
return (new Combinator($f))();
1718
}

tests/static-analysis/Z.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44

55
namespace loophp\combinator\Tests\StaticAnalysis;
66

7+
use Closure;
78
use loophp\combinator\Combinator\Z as Combinator;
89

910
/**
10-
* @param callable(int): callable $f
11+
* @param callable(callable): Closure $f
1112
*
12-
* @return callable
13+
* @return Closure
1314
*/
14-
function test(callable $f)
15+
function test(callable $f): Closure
1516
{
1617
return (new Combinator($f))();
1718
}

0 commit comments

Comments
 (0)