Had the same problem, my plugin had been working fine… so it’s because of the legacy code.
simply search the UamUserGroup.class.php file for any references passed like so
function myFunc($arg) { }
myFunc(&$arg);
And replace like so
function myFunc(&$arg) { }
myFunc($var);
Work fine for me! Hope this helps.