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 d7716ad commit 0f8b8b5Copy full SHA for 0f8b8b5
Zend/tests/pipe_operator/mixed_callable_call.phpt
@@ -27,6 +27,10 @@ class _Test
27
}
28
29
30
+function _double(int $x): int {
31
+ return $x * 2;
32
+}
33
+
34
$test = new _Test();
35
36
$add3 = fn($x) => _add($x, 3);
@@ -36,9 +40,10 @@ $res1 = 2
40
|> 'strlen'
37
41
|> $add3
38
42
|> fn($x) => _area($x, 2)
43
+ |> _double(...)
39
44
;
45
46
var_dump($res1);
47
?>
48
--EXPECT--
-int(20)
49
+int(40)
0 commit comments