Closed 2pha closed 6 years ago
sorry, I forgot to create a branch before making the fixes
Also, another comment on the fix for strings as function arguments. Sometimes the type of argument is unknown (in my case, converting a class function) and then if you use ".length", it will assume an array and convert to "count()". To get around this, I check for the name of the function argument name, if the variable is named "string", it assumes a string.
I made the mistake of not creating a branch before committing and creating this pull request, so am closing.
Hi @2pha, sorry, for some reason I'm not receiving email updates about this repository. Do you mind creating a new pull-request for this? Cheers!
ok, no worries. https://github.com/endel/js2php/pull/31
fixes #28