XeroAPI / xero-php-oauth2

Xero PHP SDK for oAuth 2 generated from Xero API OpenAPI Spec 3.0
MIT License
92 stars 66 forks source link

get invoice as pdf show me error #282

Closed izhar77 closed 2 years ago

izhar77 commented 2 years ago

error

Warning: settype(): Invalid type in D:\xampp\htdocs\xero\vendor\xeroapi\xero-php-oauth2\lib\AccountingObjectSerializer.php on line 312

code

$invoiceID = "15b39203-5567-4244-8e08-f6401e5f7e50"; $unitdp = 4; try { $result = $accountingApi->getInvoiceAsPdf($xeroTenantId, $invoiceID,$unitdp); } catch (Exception $e) { echo 'Exception when calling AccountingApi->getInvoiceAsPdf: ', $e->getMessage(), PHP_EOL; }

RettBehrens commented 2 years ago

looking to resolve with #281

dcodegroup commented 2 years ago

I have this same issue.

timothystringer commented 2 years ago

Same issue

RettBehrens commented 2 years ago

@timothystringer I've just double checked this using our php sample app and xero-php-oauth2 2.14.0 and i'm unable to replicate the error. Can you confirm which version you're using?

lionslair commented 2 years ago

The rollback resolved it for me

timothystringer commented 2 years ago

@timothystringer I've just double checked this using our php sample app and xero-php-oauth2 2.14.0 and i'm unable to replicate the error. Can you confirm which version you're using?

Sorry my mistake, haven't got the latest version!

RettBehrens commented 2 years ago

closing resolved