- Don't overwrite params passed to
doPayment()
- they are passed by reference for legacy reasons so we should not modify them because it can impact the calling code (we were overwriting the array with a\Civi\Payment\PropertyBag
object in some cases).