Fix PHP error: Only variables should be passed by reference