thinkbeforecoding / peeble

MIT License
31 stars 3 forks source link

fix: PhpCall (PhpVar) translating to 'name' instead of '$name' #4

Open entropitor opened 2 years ago

entropitor commented 2 years ago

I was getting outputs where the code was calling

$fn($arg1, $arg2)

instead of

fn($arg1, $arg2)

(which caused a problem because the variable $fn doesn't exist)

Probably because this line is commented out https://github.com/thinkbeforecoding/peeble/blob/244c6f5ed87b9d96755b2fd44ea710c0dbcbd3db/src/peeble/Transforms.fs#L404

entropitor commented 2 years ago

@thinkbeforecoding Do you think you could also take a look at this one? The master branch wasn't working but this is (for me at least)