From 33e4cae046af87bccb6dee4cd1a3a4d9794e841a Mon Sep 17 00:00:00 2001 From: Carl Bennett Date: Fri, 13 Dec 2024 19:35:31 -0600 Subject: [PATCH] Config::loadJson() always returned true, now void --- src/Libraries/Core/Config.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Libraries/Core/Config.php b/src/Libraries/Core/Config.php index 895b73fb..6d2d84f6 100644 --- a/src/Libraries/Core/Config.php +++ b/src/Libraries/Core/Config.php @@ -99,10 +99,9 @@ protected static function getValueByKey(string $key, array $haystack, mixed $def /** * Reads the JSON configuration file from disk into application memory. * - * @return boolean Whether the operation was successful. * @throws UnexpectedValueException when the JSON configuration file is unavailable. */ - public static function loadJson(): bool + public static function loadJson(): void { self::$json_config = null; @@ -117,8 +116,6 @@ public static function loadJson(): bool throw new \UnexpectedValueException('Application JSON configuration is empty'); } self::$json_config = \json_decode($buffer, true, 512, self::JSON_FLAGS); - - return true; } /**