When creating a $stf = new SepaTransferFile() and calling $stf->asXML() without any $stf->addPaymentInfo(), the following warning occurs :
SepaTransferFile.php:139 [PhpWarning] Invalid argument supplied for foreach()
While there is no real use of making an empty SEPA, the case should be handled, eventually throwing an exception.
When creating a $stf = new SepaTransferFile() and calling $stf->asXML() without any $stf->addPaymentInfo(), the following warning occurs : SepaTransferFile.php:139 [PhpWarning] Invalid argument supplied for foreach()
While there is no real use of making an empty SEPA, the case should be handled, eventually throwing an exception.
Here under this only patches the warning.
I tried using GIT to push a request but I did not succeed.