aboutsummaryrefslogtreecommitdiff
path: root/lib/Configuration.php
diff options
context:
space:
mode:
authorGravatar Dag <me@dvikan.no> 2023-12-13 21:40:13 +0100
committerGravatar GitHub <noreply@github.com> 2023-12-13 21:40:13 +0100
commitf01729c86f29b61d4a50ea8f76c639cd1fc19f5a (patch)
treec35a2640edbede00aad12b6963c2fd902118db78 /lib/Configuration.php
parent0b67544f86e887d0bf4544b452fef816ec262928 (diff)
downloadrss-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.php15
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 = [])