Skip to content

Commit 0f8b8b5

Browse files
committed
Include FCC in tested callable formats.
1 parent d7716ad commit 0f8b8b5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Zend/tests/pipe_operator/mixed_callable_call.phpt

+6-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ class _Test
2727
}
2828
}
2929

30+
function _double(int $x): int {
31+
return $x * 2;
32+
}
33+
3034
$test = new _Test();
3135

3236
$add3 = fn($x) => _add($x, 3);
@@ -36,9 +40,10 @@ $res1 = 2
3640
|> 'strlen'
3741
|> $add3
3842
|> fn($x) => _area($x, 2)
43+
|> _double(...)
3944
;
4045

4146
var_dump($res1);
4247
?>
4348
--EXPECT--
44-
int(20)
49+
int(40)

0 commit comments

Comments
 (0)