Skip to content

Conversation

@TheNewSound
Copy link
Contributor

@TheNewSound TheNewSound commented Dec 30, 2025

It currently crashes with a TypeError when using property_exists($object, "...") because $object is null if the JSON can't be decoded:


TypeError
vendor/invoiceninja/sdk-php/src/Exceptions/ApiException.php:37

property_exists(): Argument #1 ($object_or_class) must be of type object|string, null given


Stack trace:

InvoiceNinja\Sdk\Exceptions\ApiException property_exists()

vendor/invoiceninja/sdk-php/src/Exceptions/ApiException.php:37

InvoiceNinja\Sdk\Exceptions\ApiException::parseResponseBody()

vendor/invoiceninja/sdk-php/src/Exceptions/ApiException.php:37

InvoiceNinja\Sdk\Exceptions\ApiException::createFromResponse()

vendor/invoiceninja/sdk-php/src/Exceptions/ApiException.php:19


@turbo124 turbo124 merged commit 285d2dc into invoiceninja:main Jan 3, 2026
@turbo124
Copy link
Member

turbo124 commented Jan 3, 2026

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants