既然提示count()参数必须是一个数组或一个对象,那我们就直接将它设为数组试试if (count($tombstones) > 0) :改为 if (count((array)$tombstones) > 0) :