mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
chore(PHP): Drop 8.2 for Nextcloud 35
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
94194e7062
commit
a7da9cd596
36 changed files with 53 additions and 58 deletions
4
.github/workflows/autocheckers.yml
vendored
4
.github/workflows/autocheckers.yml
vendored
|
|
@ -57,7 +57,7 @@ jobs:
|
|||
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc #v2.37.1
|
||||
timeout-minutes: 5
|
||||
with:
|
||||
php-version: '8.2'
|
||||
php-version: '8.3'
|
||||
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
|
||||
coverage: none
|
||||
ini-file: development
|
||||
|
|
@ -86,7 +86,7 @@ jobs:
|
|||
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc #v2.37.1
|
||||
timeout-minutes: 5
|
||||
with:
|
||||
php-version: '8.2'
|
||||
php-version: '8.3'
|
||||
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
|
||||
coverage: none
|
||||
ini-file: development
|
||||
|
|
|
|||
2
.github/workflows/files-external-ftp.yml
vendored
2
.github/workflows/files-external-ftp.yml
vendored
|
|
@ -55,7 +55,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
ftpd: ['proftpd', 'vsftpd', 'pure-ftpd']
|
||||
|
||||
name: php${{ matrix.php-versions }}-${{ matrix.ftpd }}
|
||||
|
|
|
|||
4
.github/workflows/files-external-s3.yml
vendored
4
.github/workflows/files-external-s3.yml
vendored
|
|
@ -55,7 +55,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
|
||||
name: php${{ matrix.php-versions }}-s3-minio
|
||||
|
||||
|
|
@ -129,7 +129,7 @@ jobs:
|
|||
|
||||
strategy:
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
|
||||
name: php${{ matrix.php-versions }}-s3-localstack
|
||||
|
||||
|
|
|
|||
2
.github/workflows/files-external-sftp.yml
vendored
2
.github/workflows/files-external-sftp.yml
vendored
|
|
@ -55,7 +55,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
sftpd: ['openssh']
|
||||
|
||||
name: php${{ matrix.php-versions }}-${{ matrix.sftpd }}
|
||||
|
|
|
|||
2
.github/workflows/files-external-smb.yml
vendored
2
.github/workflows/files-external-smb.yml
vendored
|
|
@ -55,7 +55,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
|
||||
name: php${{ matrix.php-versions }}-smb
|
||||
|
||||
|
|
|
|||
2
.github/workflows/files-external-webdav.yml
vendored
2
.github/workflows/files-external-webdav.yml
vendored
|
|
@ -55,7 +55,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
|
||||
name: php${{ matrix.php-versions }}-webdav
|
||||
|
||||
|
|
|
|||
2
.github/workflows/files-external.yml
vendored
2
.github/workflows/files-external.yml
vendored
|
|
@ -55,7 +55,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
|
||||
name: php${{ matrix.php-versions }}-generic
|
||||
|
||||
|
|
|
|||
2
.github/workflows/integration-dav.yml
vendored
2
.github/workflows/integration-dav.yml
vendored
|
|
@ -45,7 +45,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
endpoint: ['old', 'new']
|
||||
service: ['CalDAV', 'CardDAV']
|
||||
|
||||
|
|
|
|||
2
.github/workflows/integration-litmus.yml
vendored
2
.github/workflows/integration-litmus.yml
vendored
|
|
@ -45,7 +45,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
endpoint: ['webdav', 'dav']
|
||||
|
||||
name: Litmus WebDAV ${{ matrix.endpoint }}
|
||||
|
|
|
|||
2
.github/workflows/integration-s3-primary.yml
vendored
2
.github/workflows/integration-s3-primary.yml
vendored
|
|
@ -54,7 +54,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
key: ['objectstore', 'objectstore_multibucket']
|
||||
|
||||
name: php${{ matrix.php-versions }}-${{ matrix.key }}-minio
|
||||
|
|
|
|||
2
.github/workflows/integration-sqlite.yml
vendored
2
.github/workflows/integration-sqlite.yml
vendored
|
|
@ -69,7 +69,7 @@ jobs:
|
|||
- 'videoverification_features'
|
||||
- 'guests_features'
|
||||
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
guests-versions: ['main']
|
||||
spreed-versions: ['main']
|
||||
activity-versions: ['master']
|
||||
|
|
|
|||
2
.github/workflows/lint-php-cs.yml
vendored
2
.github/workflows/lint-php-cs.yml
vendored
|
|
@ -59,7 +59,7 @@ jobs:
|
|||
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2.37.1
|
||||
timeout-minutes: 5
|
||||
with:
|
||||
php-version: 8.2
|
||||
php-version: 8.3
|
||||
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
|
||||
coverage: none
|
||||
ini-file: development
|
||||
|
|
|
|||
2
.github/workflows/lint-php.yml
vendored
2
.github/workflows/lint-php.yml
vendored
|
|
@ -47,7 +47,7 @@ jobs:
|
|||
|
||||
strategy:
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
|
||||
name: php-lint
|
||||
|
||||
|
|
|
|||
2
.github/workflows/object-storage-azure.yml
vendored
2
.github/workflows/object-storage-azure.yml
vendored
|
|
@ -55,7 +55,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
|
||||
name: php${{ matrix.php-versions }}-azure
|
||||
|
||||
|
|
|
|||
2
.github/workflows/object-storage-s3.yml
vendored
2
.github/workflows/object-storage-s3.yml
vendored
|
|
@ -55,7 +55,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
|
||||
name: php${{ matrix.php-versions }}-s3
|
||||
|
||||
|
|
|
|||
2
.github/workflows/object-storage-swift.yml
vendored
2
.github/workflows/object-storage-swift.yml
vendored
|
|
@ -55,7 +55,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
|
||||
name: php${{ matrix.php-versions }}-swift
|
||||
|
||||
|
|
|
|||
2
.github/workflows/openapi.yml
vendored
2
.github/workflows/openapi.yml
vendored
|
|
@ -34,7 +34,7 @@ jobs:
|
|||
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2.37.1
|
||||
timeout-minutes: 5
|
||||
with:
|
||||
php-version: '8.2'
|
||||
php-version: '8.3'
|
||||
extensions: ctype, curl, dom, fileinfo, gd, json, libxml, mbstring, openssl, pcntl, pdo, posix, session, simplexml, xml, xmlreader, xmlwriter, zip, zlib
|
||||
coverage: none
|
||||
ini-file: development
|
||||
|
|
|
|||
2
.github/workflows/performance.yml
vendored
2
.github/workflows/performance.yml
vendored
|
|
@ -41,7 +41,7 @@ jobs:
|
|||
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2.37.1
|
||||
timeout-minutes: 5
|
||||
with:
|
||||
php-version: '8.2'
|
||||
php-version: '8.3'
|
||||
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, redis, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
2
.github/workflows/phpunit-32bits.yml
vendored
2
.github/workflows/phpunit-32bits.yml
vendored
|
|
@ -30,7 +30,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8,5']
|
||||
php-versions: ['8.3', '8,5']
|
||||
|
||||
steps:
|
||||
- name: Checkout server
|
||||
|
|
|
|||
2
.github/workflows/phpunit-mariadb.yml
vendored
2
.github/workflows/phpunit-mariadb.yml
vendored
|
|
@ -61,7 +61,7 @@ jobs:
|
|||
matrix:
|
||||
include:
|
||||
- mariadb-versions: '10.6'
|
||||
php-versions: '8.2'
|
||||
php-versions: '8.3'
|
||||
- mariadb-versions: '11.8'
|
||||
php-versions: '8.5'
|
||||
|
||||
|
|
|
|||
2
.github/workflows/phpunit-memcached.yml
vendored
2
.github/workflows/phpunit-memcached.yml
vendored
|
|
@ -56,7 +56,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
|
||||
name: Memcached (PHP ${{ matrix.php-versions }})
|
||||
|
||||
|
|
|
|||
2
.github/workflows/phpunit-mysql-sharding.yml
vendored
2
.github/workflows/phpunit-mysql-sharding.yml
vendored
|
|
@ -58,7 +58,7 @@ jobs:
|
|||
matrix:
|
||||
include:
|
||||
- mysql-versions: '8.0'
|
||||
php-versions: '8.2'
|
||||
php-versions: '8.3'
|
||||
- mysql-versions: '8.4'
|
||||
php-versions: '8.5'
|
||||
|
||||
|
|
|
|||
2
.github/workflows/phpunit-mysql.yml
vendored
2
.github/workflows/phpunit-mysql.yml
vendored
|
|
@ -61,7 +61,7 @@ jobs:
|
|||
matrix:
|
||||
include:
|
||||
- mysql-versions: '8.0'
|
||||
php-versions: '8.2'
|
||||
php-versions: '8.3'
|
||||
- mysql-versions: '8.4'
|
||||
php-versions: '8.5'
|
||||
|
||||
|
|
|
|||
2
.github/workflows/phpunit-nodb.yml
vendored
2
.github/workflows/phpunit-nodb.yml
vendored
|
|
@ -59,7 +59,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
|
||||
name: No DB unit tests (PHP ${{ matrix.php-versions }})
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
key: ['s3', 's3-multibucket']
|
||||
|
||||
name: php${{ matrix.php-versions }}-${{ matrix.key }}-minio
|
||||
|
|
|
|||
2
.github/workflows/phpunit-oci.yml
vendored
2
.github/workflows/phpunit-oci.yml
vendored
|
|
@ -61,7 +61,7 @@ jobs:
|
|||
matrix:
|
||||
include:
|
||||
- oracle-versions: '18'
|
||||
php-versions: '8.2'
|
||||
php-versions: '8.3'
|
||||
- oracle-versions: '23'
|
||||
php-versions: '8.5'
|
||||
|
||||
|
|
|
|||
2
.github/workflows/phpunit-pgsql.yml
vendored
2
.github/workflows/phpunit-pgsql.yml
vendored
|
|
@ -61,7 +61,7 @@ jobs:
|
|||
matrix:
|
||||
include:
|
||||
- postgres-versions: '14'
|
||||
php-versions: '8.2'
|
||||
php-versions: '8.3'
|
||||
- postgres-versions: '18'
|
||||
php-versions: '8.5'
|
||||
|
||||
|
|
|
|||
2
.github/workflows/phpunit-sqlite.yml
vendored
2
.github/workflows/phpunit-sqlite.yml
vendored
|
|
@ -59,7 +59,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ['8.2', '8.5']
|
||||
php-versions: ['8.3', '8.5']
|
||||
|
||||
name: SQLite (PHP ${{ matrix.php-versions }})
|
||||
|
||||
|
|
|
|||
2
.github/workflows/rector-apply.yml
vendored
2
.github/workflows/rector-apply.yml
vendored
|
|
@ -34,7 +34,7 @@ jobs:
|
|||
- name: Set up php
|
||||
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2.37.1
|
||||
with:
|
||||
php-version: '8.2'
|
||||
php-version: '8.3'
|
||||
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
|
||||
coverage: none
|
||||
ini-file: development
|
||||
|
|
|
|||
2
.github/workflows/rector.yml
vendored
2
.github/workflows/rector.yml
vendored
|
|
@ -52,7 +52,7 @@ jobs:
|
|||
- name: Set up php
|
||||
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc #v2.37.1
|
||||
with:
|
||||
php-version: '8.2'
|
||||
php-version: '8.3'
|
||||
extensions: apcu,ctype,curl,dom,fileinfo,ftp,gd,imagick,intl,json,ldap,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
|
||||
coverage: none
|
||||
env:
|
||||
|
|
|
|||
10
.github/workflows/static-code-analysis.yml
vendored
10
.github/workflows/static-code-analysis.yml
vendored
|
|
@ -64,7 +64,7 @@ jobs:
|
|||
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc #v2.37.1
|
||||
timeout-minutes: 5
|
||||
with:
|
||||
php-version: '8.2'
|
||||
php-version: '8.3'
|
||||
extensions: apcu,ctype,curl,dom,fileinfo,ftp,gd,imagick,intl,json,ldap,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
|
||||
coverage: none
|
||||
env:
|
||||
|
|
@ -100,7 +100,7 @@ jobs:
|
|||
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc #v2.37.1
|
||||
timeout-minutes: 5
|
||||
with:
|
||||
php-version: '8.2'
|
||||
php-version: '8.3'
|
||||
extensions: ctype,curl,dom,fileinfo,ftp,gd,imagick,intl,json,ldap,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
|
||||
coverage: none
|
||||
|
||||
|
|
@ -137,7 +137,7 @@ jobs:
|
|||
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc #v2.37.1
|
||||
timeout-minutes: 5
|
||||
with:
|
||||
php-version: '8.2'
|
||||
php-version: '8.3'
|
||||
extensions: ctype,curl,dom,fileinfo,gd,imagick,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
|
||||
coverage: none
|
||||
env:
|
||||
|
|
@ -170,7 +170,7 @@ jobs:
|
|||
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc #v2.37.1
|
||||
timeout-minutes: 5
|
||||
with:
|
||||
php-version: '8.2'
|
||||
php-version: '8.3'
|
||||
extensions: ctype,curl,dom,fileinfo,gd,imagick,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
|
||||
coverage: none
|
||||
env:
|
||||
|
|
@ -198,7 +198,7 @@ jobs:
|
|||
- name: Set up php
|
||||
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc #v2.37.1
|
||||
with:
|
||||
php-version: '8.2'
|
||||
php-version: '8.3'
|
||||
extensions: ctype,curl,dom,fileinfo,gd,imagick,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
|
||||
coverage: none
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@ use OCP\SetupCheck\ISetupCheck;
|
|||
use OCP\SetupCheck\SetupResult;
|
||||
|
||||
class PhpOutdated implements ISetupCheck {
|
||||
public const DEPRECATED_PHP_VERSION = '8.2';
|
||||
public const DEPRECATED_SINCE = '33';
|
||||
public const FUTURE_REQUIRED_PHP_VERSION = '8.3';
|
||||
public const FUTURE_REQUIRED_STARTING = '34';
|
||||
public const DEPRECATED_PHP_VERSION = '8.3';
|
||||
public const DEPRECATED_SINCE = '35';
|
||||
public const FUTURE_REQUIRED_PHP_VERSION = '8.4';
|
||||
public const FUTURE_REQUIRED_STARTING = '37';
|
||||
|
||||
public function __construct(
|
||||
private IL10N $l10n,
|
||||
|
|
@ -36,7 +36,7 @@ class PhpOutdated implements ISetupCheck {
|
|||
|
||||
#[\Override]
|
||||
public function run(): SetupResult {
|
||||
if (PHP_VERSION_ID < 80300) {
|
||||
if (PHP_VERSION_ID < 80400) {
|
||||
return SetupResult::warning($this->l10n->t('You are currently running PHP %1$s. PHP %2$s is deprecated since Nextcloud %3$s. Nextcloud %4$s may require at least PHP %5$s. Please upgrade to one of the officially supported PHP versions provided by the PHP Group as soon as possible.', [
|
||||
PHP_VERSION,
|
||||
self::DEPRECATED_PHP_VERSION,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
"optimize-autoloader": true,
|
||||
"sort-packages": true,
|
||||
"platform": {
|
||||
"php": "8.2"
|
||||
"php": "8.3"
|
||||
},
|
||||
"allow-plugins": {
|
||||
"bamarni/composer-bin-plugin": true
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
}
|
||||
},
|
||||
"require": {
|
||||
"php": "^8.2",
|
||||
"php": "^8.3",
|
||||
"ext-apcu": "*",
|
||||
"ext-ctype": "*",
|
||||
"ext-curl": "*",
|
||||
|
|
@ -63,12 +63,7 @@
|
|||
],
|
||||
"cs:fix": "php-cs-fixer fix",
|
||||
"cs:check": "php-cs-fixer fix --dry-run --diff",
|
||||
"lint": [
|
||||
"@lint-8.2-or-earlier",
|
||||
"@lint-8.3-or-later"
|
||||
],
|
||||
"lint-8.2-or-earlier": "[ $(php -r \"echo PHP_VERSION_ID;\") -ge 80300 ] || find . -type f -name '*.php' -not -path './3rdparty/*' -not -path '*/composer/*' -not -path '*/stubs/*' -not -path '*/vendor-bin/*' -not -path '*/vendor/*' -print0 | xargs -0 -n1 -P$(nproc) php -l",
|
||||
"lint-8.3-or-later": "[ $(php -r \"echo PHP_VERSION_ID;\") -lt 80300 ] || find . -type f -name '*.php' -not -path './3rdparty/*' -not -path '*/composer/*' -not -path '*/stubs/*' -not -path '*/vendor-bin/*' -not -path '*/vendor/*' -print0 | xargs -0 -n200 -P$(nproc) php -l",
|
||||
"lint": "find . -type f -name '*.php' -not -path './3rdparty/*' -not -path '*/composer/*' -not -path '*/stubs/*' -not -path '*/vendor-bin/*' -not -path '*/vendor/*' -print0 | xargs -0 -n200 -P$(nproc) php -l",
|
||||
"psalm": "psalm --no-cache --threads=$(nproc)",
|
||||
"psalm:ocp": "psalm --no-cache --threads=$(nproc) -c psalm-ocp.xml",
|
||||
"psalm:ncu": "psalm --no-cache --threads=$(nproc) -c psalm-ncu.xml",
|
||||
|
|
|
|||
6
composer.lock
generated
6
composer.lock
generated
|
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "505d1844c1fc6ac7de3dfc1552597c22",
|
||||
"content-hash": "6da9ca205233da5c04b027365f70174a",
|
||||
"packages": [],
|
||||
"packages-dev": [
|
||||
{
|
||||
|
|
@ -71,7 +71,7 @@
|
|||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": {
|
||||
"php": "^8.2",
|
||||
"php": "^8.3",
|
||||
"ext-apcu": "*",
|
||||
"ext-ctype": "*",
|
||||
"ext-curl": "*",
|
||||
|
|
@ -93,7 +93,7 @@
|
|||
},
|
||||
"platform-dev": {},
|
||||
"platform-overrides": {
|
||||
"php": "8.2"
|
||||
"php": "8.3"
|
||||
},
|
||||
"plugin-api-version": "2.9.0"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
$issues = array();
|
||||
|
||||
if (!(PHP_VERSION_ID >= 80200)) {
|
||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.2.0". You are running ' . PHP_VERSION . '.';
|
||||
if (!(PHP_VERSION_ID >= 80300)) {
|
||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.3.0". You are running ' . PHP_VERSION . '.';
|
||||
}
|
||||
|
||||
if ($issues) {
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ declare(strict_types=1);
|
|||
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
// Show warning if a PHP version below 8.2 is used,
|
||||
if (PHP_VERSION_ID < 80200) {
|
||||
// Show warning if a PHP version below 8.3 is used,
|
||||
if (PHP_VERSION_ID < 80300) {
|
||||
http_response_code(500);
|
||||
echo 'This version of Nextcloud requires at least PHP 8.2<br/>';
|
||||
echo 'This version of Nextcloud requires at least PHP 8.3<br/>';
|
||||
echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue