From ee71b0fd3dd9491504f51a14de3fa083af26356e Mon Sep 17 00:00:00 2001 From: Haydar KULEKCI Date: Wed, 15 Jun 2022 10:36:40 +0300 Subject: [PATCH] fix for the method return type of the user and password method of config storage --- src/ElasticSearch/Config/Storage.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ElasticSearch/Config/Storage.php b/src/ElasticSearch/Config/Storage.php index 182c252d..5bcf29be 100644 --- a/src/ElasticSearch/Config/Storage.php +++ b/src/ElasticSearch/Config/Storage.php @@ -32,17 +32,17 @@ public function hosts(): array } /** - * @return string + * @return ?string */ - public function user(): string + public function user(): ?string { return $this->loadConfig('user'); } /** - * @return string + * @return ?string */ - public function password(): string + public function password(): ?string { return $this->loadConfig('password'); }