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'); }