Skip to content

Http/Header 里private static function isValidKeyName($str)函数报错问题 #374

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
doghap opened this issue Jan 24, 2022 · 2 comments · Fixed by #375
Closed

Http/Header 里private static function isValidKeyName($str)函数报错问题 #374

doghap opened this issue Jan 24, 2022 · 2 comments · Fixed by #375

Comments

@doghap
Copy link

doghap commented Jan 24, 2022

问题报错原因是count()函数只对Countable或数组有效,而字符串则需要用strlen()函数去求长度

private static function isValidKeyName($str)

@doghap
Copy link
Author

doghap commented Jan 24, 2022

具体错误为:count(): Parameter must be an array or an object that implements Countable

@lihsai0
Copy link
Collaborator

lihsai0 commented Jan 25, 2022

@doghap 感谢反馈!:pray:

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

Successfully merging a pull request may close this issue.

2 participants