Skip to content

Commit 33e4cae

Browse files
committed
Config::loadJson() always returned true, now void
1 parent dbb6014 commit 33e4cae

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Libraries/Core/Config.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,9 @@ protected static function getValueByKey(string $key, array $haystack, mixed $def
9999
/**
100100
* Reads the JSON configuration file from disk into application memory.
101101
*
102-
* @return boolean Whether the operation was successful.
103102
* @throws UnexpectedValueException when the JSON configuration file is unavailable.
104103
*/
105-
public static function loadJson(): bool
104+
public static function loadJson(): void
106105
{
107106
self::$json_config = null;
108107

@@ -117,8 +116,6 @@ public static function loadJson(): bool
117116
throw new \UnexpectedValueException('Application JSON configuration is empty');
118117
}
119118
self::$json_config = \json_decode($buffer, true, 512, self::JSON_FLAGS);
120-
121-
return true;
122119
}
123120

124121
/**

0 commit comments

Comments
 (0)