abivia / ledger

General Ledger and Journal Accounting Package and API for Laravel
MIT License
102 stars 23 forks source link

TypeError on query calls #22

Closed instancezero closed 5 months ago

instancezero commented 5 months ago

From https://github.com/abivia/ledger/discussions/21 opened by @marvoh

After installation and adding several accounts, the /account/query together with all the endpoints that are suffixed by '/query' such as /currency/query and journal/query return the following exception instead of an empty result when I don't have anything under it TypeError: Abivia\Ledger\Messages\AccountQuery::fromArray(): Argument #1 ($data) must be of type array, null given, called in /var/www/vendor/abivia/ledger/src/Messages/Message.php on line 121 in file var/www/vendor/abivia/ledger/src/Messages/AccountQuery.php on line 29. Did I miss a configuration?

Originally posted by @instancezero in https://github.com/abivia/ledger/discussions/21

instancezero commented 5 months ago

Fixed in release 1.11.1