summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2023-04-19 15:28:12 +0200
committerGitHub <noreply@github.com>2023-04-19 15:28:12 +0200
commitf5c4f5557660081a7f4477e1b7dcbe328e49afa2 (patch)
tree76c08792a42eb116b5f1c7b8e80e7404962316a4 /core/js
parent5d195268b08d5f29e49470cf772cf022cc09144b (diff)
parent60a710c91c8ba41277f14881afad5db02de76cbf (diff)
downloadnextcloud-server-f5c4f5557660081a7f4477e1b7dcbe328e49afa2.tar.gz
nextcloud-server-f5c4f5557660081a7f4477e1b7dcbe328e49afa2.zip
Merge pull request #37451 from Fenn-CS/fix/36437/deprecate-php-8.0
Deprecate PHP8.0
Diffstat (limited to 'core/js')
-rw-r--r--core/js/setupchecks.js8
-rw-r--r--core/js/tests/specs/setupchecksSpec.js2
2 files changed, 9 insertions, 1 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index 99cd47bdccc..828c950d389 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -308,6 +308,14 @@
msg: t('core', 'You are currently running PHP {version}. Upgrade your PHP version to take advantage of {linkstart}performance and security updates provided by the PHP Group ↗{linkend} as soon as your distribution supports it.', { version: data.phpSupported.version })
.replace('{linkstart}', '<a target="_blank" rel="noreferrer noopener" class="external" href="https://secure.php.net/supported-versions.php">')
.replace('{linkend}', '</a>'),
+ type: OC.SetupChecks.MESSAGE_TYPE_WARNING
+ })
+ }
+ if (data.phpSupported && data.phpSupported.version.substr(0, 3) === '8.0') {
+ messages.push({
+ msg: t('core', 'PHP 8.0 is now deprecated in Nextcloud 27. Nextcloud 28 may require at least PHP 8.1. Please upgrade to {linkstart}one of the officially supported PHP versions provided by the PHP Group ↗{linkend} as soon as possible.')
+ .replace('{linkstart}', '<a target="_blank" rel="noreferrer noopener" class="external" href="https://secure.php.net/supported-versions.php">')
+ .replace('{linkend}', '</a>'),
type: OC.SetupChecks.MESSAGE_TYPE_INFO
})
}
diff --git a/core/js/tests/specs/setupchecksSpec.js b/core/js/tests/specs/setupchecksSpec.js
index 6add0609060..43f42d2610e 100644
--- a/core/js/tests/specs/setupchecksSpec.js
+++ b/core/js/tests/specs/setupchecksSpec.js
@@ -1006,7 +1006,7 @@ describe('OC.SetupChecks tests', function() {
async.done(function( data, s, x ){
expect(data).toEqual([{
msg: 'You are currently running PHP 5.4.0. Upgrade your PHP version to take advantage of <a target="_blank" rel="noreferrer noopener" class="external" href="https://secure.php.net/supported-versions.php">performance and security updates provided by the PHP Group ↗</a> as soon as your distribution supports it.',
- type: OC.SetupChecks.MESSAGE_TYPE_INFO
+ type: OC.SetupChecks.MESSAGE_TYPE_WARNING
}]);
done();
});