Skip to content

Commit

Permalink
Update Reject.php
Browse files Browse the repository at this point in the history
  • Loading branch information
gplanchat authored Dec 10, 2024
1 parent 8d6932c commit 73c64de
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/Plugin/Filtering/Builder/Reject.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,23 @@ class: new Node\Stmt\Class_(null, [
new Node\Expr\Variable('input'),
new Node\Expr\Yield_(
new Node\Expr\New_(
new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\RejectionResultBucket'),
[
new Node\Arg(new Node\Expr\Variable('input')),
]
class: new Node\Name\FullyQualified(
\Kiboko\Component\Bucket\RejectionResultBucket::class
),
args: [
new Node\Arg(
new Node\Expr\MethodCall(
new Node\Expr\Variable('exception'),
'getMessage'
),
),
new Node\Expr\ConstFetch(
new Node\Expr\Variable('exception'),
),
new Node\Arg(
new Node\Expr\Variable('input'),
),
],
),
),
),
Expand Down

0 comments on commit 73c64de

Please sign in to comment.