Adapt swoole 5.0 by removing swoole classes with PSR-0. (#4406)

* Removed swoole classes with `PSR-0`

* Update CHANGELOG-2.2.md
This commit is contained in:
李铭昕 2021-12-29 11:14:18 +08:00 committed by GitHub
parent d094b80a0a
commit 0e7054c304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,10 @@
- [#4399](https://github.com/hyperf/hyperf/pull/4399) Fixed bug that `Redis::scan` does not work when using redis cluster.
## Optimized
- [#4406](https://github.com/hyperf/hyperf/pull/4406) Adapt swoole 5.0 by removing swoole classes with `PSR-0`.
# v2.2.21 - 2021-12-20
## Fixed

View File

@ -18,6 +18,7 @@ use Hyperf\GrpcClient\Exception\GrpcClientException;
use Hyperf\Utils\ApplicationContext;
use Hyperf\Utils\ChannelPool;
use InvalidArgumentException;
use Swoole\Http2\Response;
/**
* @method int send(Request $request)
@ -91,7 +92,7 @@ class BaseClient
* @param Message $argument The argument to the method
* @param callable $deserialize A function that deserializes the response
* @throws GrpcClientException
* @return array|\Google\Protobuf\Internal\Message[]|\swoole_http2_response[]
* @return array|\Google\Protobuf\Internal\Message[]|Response[]
*/
protected function _simpleRequest(
string $method,