facebook / facebook/hhvm

Add quickfix for accidental string interpolation

Open
#8,974 1 comment 0 reactions 0 assignees View on GitHub
major-league-hacking
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

Example bad code:

```hack
function foo(): void {
$s = "price in $usd";
}
```

The quickfix should escape the dollar sign.

```hack
function foo(): void {
$s = "price in \$usd";
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.