From 3f187395eaed8d6e455adb454a65f9e2503f390a Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 7 May 2025 10:47:09 +0200 Subject: Move PHP minimum version check (#7560) It is too late to check for minimum version check in `lib_rss.php` because that file already contains some relatively new PHP language constructs, which will lead to a syntax error - when running with an old PHP version - instead of the expected error message. Moved to `constants.php` for now. Example of syntax error with PHP 7.4: ``` PHP Parse error: syntax error, unexpected '|', expecting '{' in /var/www/FreshRSS/lib/lib_rss.php on line 166 ``` Should help users like in: * https://github.com/FreshRSS/FreshRSS/discussions/7539 * https://github.com/FreshRSS/FreshRSS/issues/7557 --- lib/lib_rss.php | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index e1618a2ef..3ddda1515 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -1,10 +1,6 @@