mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-01 14:20:16 +02:00
fix: rewrite and improve caching (#3594)
This commit is contained in:
@@ -37,10 +37,6 @@ final class Configuration
|
||||
*/
|
||||
public static function verifyInstallation()
|
||||
{
|
||||
if (version_compare(\PHP_VERSION, '7.4.0') === -1) {
|
||||
throw new \Exception('RSS-Bridge requires at least PHP version 7.4.0!');
|
||||
}
|
||||
|
||||
$errors = [];
|
||||
|
||||
// OpenSSL: https://www.php.net/manual/en/book.openssl.php
|
||||
@@ -211,6 +207,9 @@ final class Configuration
|
||||
if (!is_string(self::getConfig('error', 'output'))) {
|
||||
self::throwConfigError('error', 'output', 'Is not a valid String');
|
||||
}
|
||||
if (!in_array(self::getConfig('error', 'output'), ['feed', 'http', 'none'])) {
|
||||
self::throwConfigError('error', 'output', 'Invalid output');
|
||||
}
|
||||
|
||||
if (
|
||||
!is_numeric(self::getConfig('error', 'report_limit'))
|
||||
|
Reference in New Issue
Block a user