From 238d625cd2f26fbb03b1a28c0640e59c4d96f832 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= <715557344@qq.com> Date: Fri, 7 Jul 2023 11:00:37 +0800 Subject: [PATCH] Fixed bug that acm `client::$servers` must be accessed before initialization. (#5909) --- CHANGELOG-3.0.md | 4 ++++ src/config-aliyun-acm/src/Client.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-3.0.md b/CHANGELOG-3.0.md index c2d29e4e6..003307732 100644 --- a/CHANGELOG-3.0.md +++ b/CHANGELOG-3.0.md @@ -1,5 +1,9 @@ # v3.0.28 - TBD +## Fixed + +- [#5909](https://github.com/hyperf/hyperf/pull/5909) Fixed bug that acm `client::$servers` must be accessed before initialization. + ## Added - [#5895](https://github.com/hyperf/hyperf/pull/5895) Added strict mode support for `Integer` and `Boolean`. diff --git a/src/config-aliyun-acm/src/Client.php b/src/config-aliyun-acm/src/Client.php index 72ad95ef6..10fdc0ef4 100644 --- a/src/config-aliyun-acm/src/Client.php +++ b/src/config-aliyun-acm/src/Client.php @@ -29,7 +29,7 @@ class Client implements ClientInterface private LoggerInterface $logger; - private array $servers; + private array $servers = []; /** * @var array[]