File tree 2 files changed +32
-5
lines changed
src/Plugin/Filtering/Builder
2 files changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,21 @@ class: new Node\Stmt\Class_(null, [
122
122
new Node \Expr \Variable ('input ' ),
123
123
new Node \Expr \Yield_ (
124
124
new Node \Expr \New_ (
125
- new Node \Name \FullyQualified ('Kiboko \\Component \\Bucket \\RejectionResultBucket ' ),
125
+ class: new Node \Name \FullyQualified ('Kiboko \\Component \\Bucket \\RejectionResultBucket ' ),
126
+ args: [
127
+ new Node \Arg (
128
+ new Node \Expr \MethodCall (
129
+ new Node \Expr \Variable ('exception ' ),
130
+ 'getMessage '
131
+ ),
132
+ ),
133
+ new Node \Expr \ConstFetch (
134
+ new Node \Expr \Variable ('exception ' ),
135
+ ),
136
+ new Node \Arg (
137
+ new Node \Expr \Variable ('input ' ),
138
+ ),
139
+ ],
126
140
),
127
141
),
128
142
),
Original file line number Diff line number Diff line change @@ -122,10 +122,23 @@ class: new Node\Stmt\Class_(null, [
122
122
new Node \Expr \Variable ('input ' ),
123
123
new Node \Expr \Yield_ (
124
124
new Node \Expr \New_ (
125
- new Node \Name \FullyQualified ('Kiboko \\Component \\Bucket \\RejectionResultBucket ' ),
126
- [
127
- new Node \Arg (new Node \Expr \Variable ('input ' )),
128
- ]
125
+ class: new Node \Name \FullyQualified (
126
+ \Kiboko \Component \Bucket \RejectionResultBucket::class
127
+ ),
128
+ args: [
129
+ new Node \Arg (
130
+ new Node \Expr \MethodCall (
131
+ new Node \Expr \Variable ('exception ' ),
132
+ 'getMessage '
133
+ ),
134
+ ),
135
+ new Node \Expr \ConstFetch (
136
+ new Node \Expr \Variable ('exception ' ),
137
+ ),
138
+ new Node \Arg (
139
+ new Node \Expr \Variable ('input ' ),
140
+ ),
141
+ ],
129
142
),
130
143
),
131
144
),
You can’t perform that action at this time.
0 commit comments