Crud: CrudTrait PHP 7.2: count(): Parameter must be an array or an object that implements Countable

Created on 22 Nov 2017  路  4Comments  路  Source: Laravel-Backpack/CRUD

Bug report

hi everyone =3

What I did:

install php7.2

What I expected to happen:

count(null): 0

What happened:

count(null): Parameter must be an array or an object that implements Countable

at count(null)in CrudTrait.php (line 83)

What I've already tried to fix it:

workaround by downgrading to php7.1

Backpack, Laravel, PHP, DB version:

backpack/crud 3.2.22
laravel/framework v5.4.36
PHP 7.2
mysql 5.7.20

Most helpful comment

"backpack/crud": "^3.2"
upgrading to
"backpack/crud": "^3.3"
fixed my issue

All 4 comments

"backpack/crud": "^3.2"
upgrading to
"backpack/crud": "^3.3"
fixed my issue

Hi @Darival - thanks for sharing the solution!

Thanks @Darival same issue to me (with php 7.2). backpack/crud upgrade solves for me as well 馃憤

I Still have This Issue..

Was this page helpful?
0 / 5 - 0 ratings