Skip to content

Commit

Permalink
Config::loadJson() always returned true, now void
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Dec 14, 2024
1 parent dbb6014 commit 33e4cae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Libraries/Core/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}

/**
Expand Down

0 comments on commit 33e4cae

Please sign in to comment.