This is very much, a cut down version of the code giving the error:
final class Test {
public function one($data, $key) {
this->generic($data, $key);
}
private function two(&$data, &$key) {
// etc....
}
}
function one, calls function two (passing a reference to the data/key)... The line this->generic($data, $key); throws this error: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in...
I am sure I have made a simple PHP mistake, but haven't solved this yet.