Commit 91b687c
fix: resolve conditional return string branch for interpolated strings
The AST-based conditional return resolver only matched
Expression::Literal(Literal::String) when checking `$key is string`,
so interpolated strings like `"{$prefix}.host"` (parsed as
Expression::CompositeString) fell through to the else branch and
resolved as null. Add CompositeString to the string match so the
correct branch is taken.
Closes #2691 parent a7f931b commit 91b687c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments