File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/Plugin/Filtering/Builder Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,9 @@ class: new Node\Name\FullyQualified(
137137 ),
138138 args: [
139139 new Node \Arg (
140- new Node \Scalar \String_ ($ this ->reason ),
140+ $ this ->reason !== null
141+ ? new Node \Scalar \String_ ($ this ->reason )
142+ : new Node \Expr \ConstFetch (new Node \Name ('null ' )),
141143 ),
142144 new Node \Arg (
143145 new Node \Expr \ConstFetch (new Node \Name ('null ' )),
Original file line number Diff line number Diff line change @@ -137,7 +137,9 @@ class: new Node\Name\FullyQualified(
137137 ),
138138 args: [
139139 new Node \Arg (
140- new Node \Scalar \String_ ($ this ->reason ),
140+ $ this ->reason !== null
141+ ? new Node \Scalar \String_ ($ this ->reason )
142+ : new Node \Expr \ConstFetch (new Node \Name ('null ' )),
141143 ),
142144 new Node \Arg (
143145 new Node \Expr \ConstFetch (new Node \Name ('null ' )),
You can’t perform that action at this time.
0 commit comments