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 55fc0bd commit a7b48e1Copy full SHA for a7b48e1
src/test/php/lang/ast/unittest/emit/PipelinesTest.class.php
@@ -110,14 +110,23 @@ public function run() {
110
}
111
112
#[Test, Expect(Error::class)]
113
- public function pipe_to_missing() {
+ public function missing_function() {
114
$this->run('class %T {
115
public function run() {
116
return "test" |> "__missing";
117
118
}');
119
120
121
+ #[Test, Expect(Error::class)]
122
+ public function missing_argument() {
123
+ $this->run('class %T {
124
+ public function run() {
125
+ return 5 |> fn($a, $b) => $a * $b;
126
+ }
127
+ }');
128
129
+
130
#[Test]
131
public function pipe_chain() {
132
$r= $this->run('class %T {
0 commit comments