github / semantic

Parsing, analyzing, and comparing source code across many languages
8.94k stars 454 forks source link

PHP Call By Reference #637

Open bdrodes opened 3 years ago

bdrodes commented 3 years ago

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 &).

cfroystad commented 2 years ago

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