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 = '') { } } }