This repository was archived by the owner on Feb 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function testExample(): void
43
43
Stage::project (
44
44
totalPrice: Expression::switch (
45
45
branches: [
46
- object (
46
+ Expression:: case (
47
47
case: Expression::eq (
48
48
Expression::type (
49
49
Expression::fieldPath ('convertedPrice ' ),
@@ -52,7 +52,7 @@ public function testExample(): void
52
52
),
53
53
then: 'NaN ' ,
54
54
),
55
- object (
55
+ Expression:: case (
56
56
case: Expression::eq (
57
57
Expression::type (
58
58
Expression::fieldPath ('convertedQty ' ),
Original file line number Diff line number Diff line change @@ -28,35 +28,35 @@ public function testConditionallyModifyFieldsUsingIsNumber(): void
28
28
then: Expression::fieldPath ('grade ' ),
29
29
else: Expression::switch (
30
30
branches: [
31
- object (
31
+ Expression:: case (
32
32
case: Expression::eq (
33
33
Expression::fieldPath ('grade ' ),
34
34
'A ' ,
35
35
),
36
36
then: 4 ,
37
37
),
38
- object (
38
+ Expression:: case (
39
39
case: Expression::eq (
40
40
Expression::fieldPath ('grade ' ),
41
41
'B ' ,
42
42
),
43
43
then: 3 ,
44
44
),
45
- object (
45
+ Expression:: case (
46
46
case: Expression::eq (
47
47
Expression::fieldPath ('grade ' ),
48
48
'C ' ,
49
49
),
50
50
then: 2 ,
51
51
),
52
- object (
52
+ Expression:: case (
53
53
case: Expression::eq (
54
54
Expression::fieldPath ('grade ' ),
55
55
'D ' ,
56
56
),
57
57
then: 1 ,
58
58
),
59
- object (
59
+ Expression:: case (
60
60
case: Expression::eq (
61
61
Expression::fieldPath ('grade ' ),
62
62
'F ' ,
Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ public function testExample(): void
22
22
Stage::addFields (
23
23
convertedShippedFlag: Expression::switch (
24
24
branches: [
25
- object (
25
+ Expression:: case (
26
26
case: Expression::eq (
27
27
Expression::fieldPath ('shipped ' ),
28
28
'false ' ,
29
29
),
30
30
then: false ,
31
31
),
32
- object (
32
+ Expression:: case (
33
33
case: Expression::eq (
34
34
Expression::fieldPath ('shipped ' ),
35
35
'' ,
You can’t perform that action at this time.
0 commit comments