semantic icon indicating copy to clipboard operation
semantic copied to clipboard

PHP Call By Reference

Open bdrodes opened this issue 4 years ago • 1 comments

Does semantic properly parse call by reference for php?

E.g.,

function foo(&$a)
{
    $a++;
}

I was experimenting with this function using the latest semanatic docker, and I saw no difference in function signature produced by semantic between the above call by reference definition and one without (without the &).

bdrodes avatar Jan 21 '21 18:01 bdrodes

This was a missing feature in tree-sitter-php, but was implemented in the parser in September

cfroystad avatar Nov 19 '21 07:11 cfroystad