You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cond: $parser->parse('<?php '.$this->interpreter->compile($condition, ['input', 'output']).';')[0]->expr ?? thrownew \UnexpectedValueException('Expected parsing result to be an instance of Node\Expr.'),
112
110
subNodes: [
113
111
'stmts' => [
114
112
newNode\Stmt\Return_(
@@ -132,11 +130,11 @@ function ($alternative) {
132
130
),
133
131
],
134
132
'elseifs' => array_map(
135
-
function ($alternative, $index) use ($expression) {
133
+
function ($alternative, $index) use ($parser) {
136
134
[$condition, $repository] = $alternative;
137
135
138
136
returnnewNode\Stmt\ElseIf_(
139
-
cond: $expression->expr,
137
+
cond: $parser->parse('<?php '.$this->interpreter->compile($condition, ['input', 'output']).';')[0]->expr ?? thrownew \UnexpectedValueException('Expected parsing result to be an instance of Node\Expr.'),
0 commit comments