vscode ampersand error ampersand & not actual error

How do i disable the following error vscode is giving me, wich is not an error?

function foobar(&$string){
    $string = "Function text";
    return $string;
}

“&$string” is underlined with curly red error.

I tried disabling some options but it still gives me the error.