Error when upgrading from 3.6 to 4

Upgraded from 3.6 to 4. on Heroku. running php >= 7.2 and got the following error

/app/app/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php [Line 1231] => count(): Parameter must be an array or an object that implements Countable

Please advise

It could be an issue with PHP 7.2, you may want to test with PHP 7.0 or 7.1.

SOLVED

Great to hear, we plan to support PHP 7.2 in an upcoming release.

You can follow the work here: https://github.com/invoiceninja/invoiceninja/issues/1767