My PHP syntax highlighter / intellisense is telling me that the & of &$cases in the line
$thisTable = $work_type === WorkTypes::Study ? &$cases : &$projs);
is an unexpected token. What I'm trying to do is create an alias for either my $cases or $projs object depending on whether $work_type === WorkTypes::Study.