既然提示count()参数必须是一个数组或一个对象,那我们就直接将它设为数组试试
if (count($tombstones) > 0) :
改为
if (count((array)$tombstones) > 0) :
Warning: count(): Parameter must be an array or an object that implements Countable in line 302解决方法
阅读 116
2023-03-10
既然提示count()参数必须是一个数组或一个对象,那我们就直接将它设为数组试试
if (count($tombstones) > 0) :
改为
if (count((array)$tombstones) > 0) :
相关推荐
精彩评论(0)