Skip to content

Commit d275216

Browse files
committed
Add test for static method FCC.
1 parent 55df27c commit d275216

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Zend/tests/pipe_operator/mixed_callable_call.phpt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ class _Test
2727
}
2828
}
2929

30+
class StaticTest {
31+
public static function oneMore(int $x): int {
32+
return $x + 1;
33+
}
34+
}
35+
3036
function _double(int $x): int {
3137
return $x * 2;
3238
}
@@ -47,9 +53,10 @@ $res1 = 2
4753
|> fn($x) => _area($x, 2)
4854
|> _double(...)
4955
|> multiplier(3)
56+
|> StaticTest::oneMore(...)
5057
;
5158

5259
var_dump($res1);
5360
?>
5461
--EXPECT--
55-
int(120)
62+
int(121)

0 commit comments

Comments
 (0)