From 39194bfd2ba9b32533dcfa51d7f6d0c3df6ab223 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Tue, 19 Aug 2025 15:56:24 +0200 Subject: [PATCH] fix: incompatible overwrite for AppConfig Signed-off-by: Anna Larch --- lib/AppConfigOverwrite.php | 9 ++++++++- tests/stub.php | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/AppConfigOverwrite.php b/lib/AppConfigOverwrite.php index b6573d50..c9a09df8 100644 --- a/lib/AppConfigOverwrite.php +++ b/lib/AppConfigOverwrite.php @@ -19,7 +19,14 @@ public function setOverwrite(array $overwrite): void { $this->overWrite = $overwrite; } - public function getValue(string $app, string $key, ?string $default = null): string { + + /** + * @param $app + * @param $key + * @param $default + * @return string + */ + public function getValue($app, $key, $default = '') { if (isset($this->overWrite[$app]) && isset($this->overWrite[$app][$key])) { return $this->overWrite[$app][$key]; } diff --git a/tests/stub.php b/tests/stub.php index 0a711f6b..8e0d69ca 100644 --- a/tests/stub.php +++ b/tests/stub.php @@ -137,7 +137,7 @@ public function __construct( /** * @deprecated - use getValue*() */ - public function getValue(string $app, string $key, ?string $default = null): string { + public function getValue($app, $key, $default = '') { } } }