Browse Source

Drop PHP 7.4 support for master (26)

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
tags/v26.0.0beta1
Côme Chilliet 1 year ago
parent
commit
9369b67df3
No account linked to committer's email address
2 changed files with 5 additions and 4 deletions
  1. 2
    1
      composer.json
  2. 3
    3
      lib/versioncheck.php

+ 2
- 1
composer.json View File

"optimize-autoloader": true, "optimize-autoloader": true,
"sort-packages": true, "sort-packages": true,
"platform": { "platform": {
"php": "7.4"
"php": "8.0"
}, },
"allow-plugins": { "allow-plugins": {
"bamarni/composer-bin-plugin": true "bamarni/composer-bin-plugin": true
} }
}, },
"require": { "require": {
"php": "^8.0",
"ext-json": "*", "ext-json": "*",
"ext-libxml": "*", "ext-libxml": "*",
"ext-mbstring": "*", "ext-mbstring": "*",

+ 3
- 3
lib/versioncheck.php View File

* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
*/ */
// Show warning if a PHP version below 7.4 is used,
if (PHP_VERSION_ID < 70400) {
// Show warning if a PHP version below 8.0 is used,
if (PHP_VERSION_ID < 80000) {
http_response_code(500); http_response_code(500);
echo 'This version of Nextcloud requires at least PHP 7.4<br/>';
echo 'This version of Nextcloud requires at least PHP 8.0<br/>';
echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
exit(1); exit(1);
} }

Loading…
Cancel
Save