Fix PHP 5.4 strict errors: Only variables should be passed by reference