Improves upon D13795 to correctly handle variables within strings. Specifically, the following code currently (incorrectly) warns about $x being undeclared:
function some_func() { return function ($x) { echo "$x"; }; }
It's worth noting that the situation would be improved if XHPAST properly parsed strings (see T8049).