Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidanio committed Apr 8, 2024
1 parent 987d5f0 commit aba34f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linter/block_linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (b *blockLinter) checkStringInterpolationDeprecation(str *ir.Encapsed) {
for _, item := range str.Parts {
variable, ok := item.(*ir.SimpleVar)
if ok {
if variable.IdentifierTkn.Value[0] != 36 { // 36 is $
if variable.IdentifierTkn.Value[0] != '$' {
b.report(str, LevelWarning, "stringInterpolationDeprecated", "use {$variable} instead ${variable}")
break
}
Expand Down

0 comments on commit aba34f2

Please sign in to comment.