From 9e15bd7fb08f3fe26433e22320fc2bbe5ac70f6c Mon Sep 17 00:00:00 2001 From: lixworth Date: Fri, 21 Jun 2024 15:27:49 +0800 Subject: [PATCH] feat: update ClientFactory.php --- composer.json | 2 +- src/ClientFactory.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index feaf9e9..a6e5fb2 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": ">=8.0", + "php": ">=8.1", "elasticsearch/elasticsearch": "^7.13", "hyperf/config": "3.1.*", "hyperf/di": "3.1.*", diff --git a/src/ClientFactory.php b/src/ClientFactory.php index e8e7cbb..0757a12 100644 --- a/src/ClientFactory.php +++ b/src/ClientFactory.php @@ -21,6 +21,8 @@ use Psr\Container\ContainerInterface; use Swoole\Coroutine; +use function Hyperf\Support\make; + class ClientFactory { public function __invoke(ContainerInterface $container): Client