aliyun / openapi-sdk-php

Alibaba Cloud SDK for PHP
https://packagist.org/packages/alibabacloud/sdk
Other
521 stars 110 forks source link

AlibabaCloud\Tea\Utils\Utils::isUnset(): Argument #1 ($value) cannot be passed by reference #208

Open s454666-star opened 2 years ago

s454666-star commented 2 years ago

Error

AlibabaCloud\Tea\Utils\Utils::isUnset(): Argument #1 ($value) cannot be passed by reference

at vendor/alibabacloud/darabonba-openapi/src/OpenApiClient.php:726 722▕ $_lastRequest = $_request; 723▕ $_response = Tea::send($_request, $_runtime); 724▕ if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { 725▕ $err = []; ➜ 726▕ if (!Utils::isUnset(@$_response->headers['content-type']) && Utils::equalString(@$_response->headers['content-type'], 'text/xml;charset=utf-8')) { 727▕ $_str = Utils::readAsString($_response->body); 728▕ $respMap = XML::parseXml($_str, null); 729▕ $err = Utils::assertAsMap(@$respMap['Error']);