Nextcloud 21 runs on PHP 7.3+ only

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2020-09-10 11:10:38 +02:00 committed by Joas Schilling
parent 2b7c2a0410
commit fd1c2ef698
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 3 additions and 3 deletions

View File

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