format/strings/complex-variable
Not in any preset. Safe fix.
What it does
Converts explicit variables in double-quoted strings and heredoc syntax from simple to complex format (${ to {$).
Configuration
[format.rules]
"strings/complex-variable" = true
To skip it in some files, add a @pun-ignore-file comment.
Replaces
simple_to_complex_string_variable(php-cs-fixer)