[TRANSFERS] Calling `setHolder` before `setTransfers` causes a warning.
Closed this issue · 0 comments
joaolucasl commented
In setHolder
there's a reference to transferInstrument
, which is instantiated in setTransfers
.
If this method is called before setTransfers
, it will trigger a warning.
How to fix?
Both setHolder
and setTransfers
need to check for the existence of $this->data->transferInstrument
- if it doesn't exist, it is instantiated. (Otherwise, it would override the existing data)