Skip to content

Commit 8d6932c

Browse files
authored
Update Drop.php
1 parent 69f9a4b commit 8d6932c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/Plugin/Filtering/Builder/Drop.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,21 @@ class: new Node\Stmt\Class_(null, [
122122
new Node\Expr\Variable('input'),
123123
new Node\Expr\Yield_(
124124
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+
],
126140
),
127141
),
128142
),

0 commit comments

Comments
 (0)