We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 036cf3c commit cfa3e3fCopy full SHA for cfa3e3f
Zend/tests/pipe_operator/mixed_callable_call.phpt
@@ -27,6 +27,12 @@ class _Test
27
}
28
29
30
+class StaticTest {
31
+ public static function oneMore(int $x): int {
32
+ return $x + 1;
33
+ }
34
+}
35
+
36
function _double(int $x): int {
37
return $x * 2;
38
@@ -47,9 +53,10 @@ $res1 = 2
47
53
|> fn($x) => _area($x, 2)
48
54
|> _double(...)
49
55
|> multiplier(3)
56
+ |> StaticTest::oneMore(...)
50
57
;
51
58
52
59
var_dump($res1);
60
?>
61
--EXPECT--
-int(120)
62
+int(121)
0 commit comments