format/strings/explicit-variable
Not in any preset. Safe fix.
What it does
Converts implicit variables into explicit ones in double-quoted strings or heredoc syntax.
Configuration
[format.rules]
"strings/explicit-variable" = true
To skip it in some files, add a @pun-ignore-file comment.
Replaces
explicit_string_variable(php-cs-fixer)braced-string-interpolation(mago-linter)