Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dongdong7 opened this issue Mar 3, 2022 · 7 comments
Closed

Comments

@dongdong7
Copy link

WX20220303-101857

PHP版本是:PHP 7.4.24 (cli) (built: Sep 24 2021 00:16:53) ( NTS )

@lihsai0
Copy link
Collaborator

lihsai0 commented Mar 3, 2022

@dongdong7 抱歉造成困扰,#378 修复,可能过阵子才能发布。

在发布之前可以:

  • 降低 PHP 版本
  • 使用低一个版本的 SDK
  • 直接修改一下此处代码

@xuanyanwow
Copy link

我在PR 377已经解决,可惜没有合并处理 响应速度较慢 哈哈哈哈

@393633905
Copy link

i将count()删除,使用if($body && .....)进行判断

@zhuaiwhh
Copy link

zhuaiwhh commented Mar 9, 2022

if(count((array)$body) > 0

@neatstudio
Copy link

哈哈。同款问题。我现在只能在代码里临时error_reporting(0)了

$report = error_reporting(0);
//....code
error_reporting($report);

@zhaozhentao
Copy link

赶紧更新呀,太慢了

@tomener
Copy link

tomener commented Mar 31, 2022

今天一大早就踩到这个坑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants