We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d6932c commit 73c64deCopy full SHA for 73c64de
src/Plugin/Filtering/Builder/Reject.php
@@ -122,10 +122,23 @@ class: new Node\Stmt\Class_(null, [
122
new Node\Expr\Variable('input'),
123
new Node\Expr\Yield_(
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
- ]
+ class: new Node\Name\FullyQualified(
+ \Kiboko\Component\Bucket\RejectionResultBucket::class
+ ),
+ 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
137
138
139
+ new Node\Expr\Variable('input'),
140
141
+ ],
142
),
143
144
0 commit comments