Closed cjtaylor-adepteo closed 2 years ago
We are facing the same issue: the SDK doesn't return an SplFileObject anymore and we are unable to download the attachments. I did the same change directly in the SDK that the issue creator pointed out. I hope this will be fixed in the next version.
See https://github.com/XeroAPI/xero-php-oauth2/pull/277 as well.
looking to resolve with #281
Fixed on latest release 2.14.0
The \SplFileObject on line 311 blocks what I believe is the correct match on 314 and stops PDFs invoices being downloaded.
https://github.com/XeroAPI/xero-php-oauth2/blob/88e2d6bec113d0f0f4186ccd76180cf06bdec7e8/lib/AccountingObjectSerializer.php#L311