workerman/http-client,PHP8异常提示

黑老怪

bug描述

workerman/http-client版本:1.0.10

PHP Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /www/wwwroot/App/vendor/workerman/http-client/src/Request.php on line 244

程序代码或配置

//206行的是空字符
$data = http_build_query($data, '', '&');
//但是244行还是用的null
$query = http_build_query($query, null, '&', PHP_QUERY_RFC3986);
1051 1 0
1个回答

walkor 打赏

已修复,更新到1.0.11或者后续更高版本。
composer reuqire workerman/http-client ^1.0.11

  • 暂无评论
年代过于久远,无法发表回答
×
🔝