I personally can never remember which way we like, and on several occasions I've committed the wrong one.
I think xhpast can catch this.
bad
$str = "hello ${world}";
good
$str = "hello {$world}";
I personally can never remember which way we like, and on several occasions I've committed the wrong one.
I think xhpast can catch this.
$str = "hello ${world}";
$str = "hello {$world}";
Status | Assigned | Task | ||
---|---|---|---|---|
Open | None | T10971 php lint: catch `"${var}"` vs `"{$var}"` | ||
Open | joshuaspence | T8049 Improve parsing of variables embedded in strings in XHPAST |