Skip to content

Commit 91b687c

Browse files
calebdwAJenbo
authored andcommitted
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 #269
1 parent a7f931b commit 91b687c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/integration/hover.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Integration tests for `textDocument/hover`.
22
33
use crate::common::{
4-
create_psr4_workspace, create_test_backend, create_test_backend_with_closure_stub,
4+
create_psr4_workspace create_test_backend, create_test_backend_with_closure_stub,
55
create_test_backend_with_full_stubs, create_test_backend_with_function_stubs,
66
create_test_backend_with_stdclass_stub,
77
};

0 commit comments

Comments
 (0)