diff options
author | 2023-12-13 21:40:13 +0100 | |
---|---|---|
committer | 2023-12-13 21:40:13 +0100 | |
commit | f01729c86f29b61d4a50ea8f76c639cd1fc19f5a (patch) | |
tree | c35a2640edbede00aad12b6963c2fd902118db78 /lib/Configuration.php | |
parent | 0b67544f86e887d0bf4544b452fef816ec262928 (diff) | |
download | rss-bridge-f01729c86f29b61d4a50ea8f76c639cd1fc19f5a.tar.gz rss-bridge-f01729c86f29b61d4a50ea8f76c639cd1fc19f5a.tar.zst rss-bridge-f01729c86f29b61d4a50ea8f76c639cd1fc19f5a.zip |
fix(arstechnica): plus a few unrelated tweaks (#3829)
Diffstat (limited to 'lib/Configuration.php')
-rw-r--r-- | lib/Configuration.php | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/Configuration.php b/lib/Configuration.php index d699178f..ac7d29bf 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -15,15 +15,7 @@ final class Configuration { } - /** - * Verifies the current installation of RSS-Bridge and PHP. - * - * Returns an error message and aborts execution if the installation does - * not satisfy the requirements of RSS-Bridge. - * - * @return void - */ - public static function verifyInstallation() + public static function checkInstallation(): array { $errors = []; @@ -57,10 +49,7 @@ final class Configuration if (!extension_loaded('json')) { $errors[] = 'json extension not loaded'; } - - if ($errors) { - throw new \Exception(sprintf('Configuration error: %s', implode(', ', $errors))); - } + return $errors; } public static function loadConfiguration(array $customConfig = [], array $env = []) |