Browse Source

feat: drop support for php 8.0

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
pull/44607/head
Richard Steinmetz 4 weeks ago
parent
commit
9ef70f0c4e

+ 2
- 2
.github/workflows/files-external-ftp.yml View File

@@ -41,10 +41,10 @@ jobs:
# do not stop on another job's failure
fail-fast: false
matrix:
php-versions: ['8.0', '8.3']
php-versions: ['8.1', '8.3']
ftpd: ['proftpd', 'vsftpd', 'pure-ftpd']
include:
- php-versions: '8.0'
- php-versions: '8.1'
coverage: ${{ github.event_name != 'pull_request' }}

name: php${{ matrix.php-versions }}-${{ matrix.ftpd }}

+ 2
- 2
.github/workflows/files-external-s3.yml View File

@@ -39,7 +39,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3']
include:
- php-versions: '8.2'
coverage: ${{ github.event_name != 'pull_request' }}
@@ -115,7 +115,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3']
include:
- php-versions: '8.3'
coverage: true

+ 3
- 3
.github/workflows/files-external-sftp.yml View File

@@ -3,7 +3,7 @@ on:
pull_request:
schedule:
- cron: "5 2 * * *"
concurrency:
group: files-external-sftp-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
@@ -41,10 +41,10 @@ jobs:
# do not stop on another job's failure
fail-fast: false
matrix:
php-versions: ['8.0', '8.3']
php-versions: ['8.1', '8.3']
sftpd: ['openssh']
include:
- php-versions: '8.0'
- php-versions: '8.1'
coverage: ${{ github.event_name != 'pull_request' }}

name: php${{ matrix.php-versions }}-${{ matrix.sftpd }}

+ 2
- 2
.github/workflows/files-external-smb.yml View File

@@ -39,9 +39,9 @@ jobs:

strategy:
matrix:
php-versions: ['8.0', '8.3']
php-versions: ['8.1', '8.3']
include:
- php-versions: '8.0'
- php-versions: '8.1'
coverage: ${{ github.event_name != 'pull_request' }}

name: php${{ matrix.php-versions }}-smb

+ 1
- 1
.github/workflows/files-external-webdav.yml View File

@@ -39,7 +39,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3']
include:
- php-versions: '8.2'
coverage: ${{ github.event_name != 'pull_request' }}

+ 1
- 1
.github/workflows/files-external.yml View File

@@ -38,7 +38,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3']
include:
- php-versions: '8.2'
coverage: ${{ github.event_name != 'pull_request' }}

+ 1
- 1
.github/workflows/integration-s3-primary.yml View File

@@ -41,7 +41,7 @@ jobs:
# do not stop on another job's failure
fail-fast: false
matrix:
php-versions: ['8.0']
php-versions: ['8.1']
key: ['objectstore', 'objectstore_multibucket']

name: php${{ matrix.php-versions }}-${{ matrix.key }}-minio

+ 1
- 1
.github/workflows/lint-php.yml View File

@@ -47,7 +47,7 @@ jobs:

strategy:
matrix:
php-versions: [ "8.0", "8.1", "8.2", "8.3" ]
php-versions: [ "8.1", "8.2", "8.3" ]

name: php-lint


+ 1
- 1
.github/workflows/object-storage-azure.yml View File

@@ -43,7 +43,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3']
include:
- php-versions: '8.3'
coverage: true

+ 1
- 1
.github/workflows/object-storage-s3.yml View File

@@ -43,7 +43,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3']
include:
- php-versions: '8.3'
coverage: true

+ 1
- 1
.github/workflows/object-storage-swift.yml View File

@@ -43,7 +43,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3']
include:
- php-versions: '8.3'
coverage: true

+ 1
- 1
.github/workflows/performance.yml View File

@@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['8.0']
php-versions: ['8.1']

name: performance-${{ matrix.php-versions }}


+ 1
- 1
.github/workflows/phpunit-32bits.yml View File

@@ -26,7 +26,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0','8.3']
php-versions: ['8.1','8.3']

steps:
- name: Checkout server

+ 1
- 1
.github/workflows/phpunit-mariadb.yml View File

@@ -52,7 +52,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0']
php-versions: ['8.1']
mariadb-versions: ['10.3', '10.4', '10.5', '10.6', '10.11']
include:
- php-versions: '8.3'

+ 1
- 1
.github/workflows/phpunit-memcached.yml View File

@@ -52,7 +52,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3']
include:
- php-versions: '8.2'
coverage: ${{ github.event_name != 'pull_request' }}

+ 1
- 1
.github/workflows/phpunit-mysql.yml View File

@@ -52,7 +52,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0']
php-versions: ['8.1']
mysql-versions: ['8.0', '8.3']
include:
- mysql-versions: '8.0'

+ 1
- 1
.github/workflows/phpunit-nodb.yml View File

@@ -53,7 +53,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3']
include:
- php-versions: '8.2'
coverage: ${{ github.event_name != 'pull_request' }}

+ 1
- 1
.github/workflows/phpunit-oci.yml View File

@@ -48,7 +48,7 @@ jobs:
strategy:
matrix:
oracle-versions: ['11']
php-versions: ['8.0', '8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3']
include:
- php-versions: '8.3'
coverage: ${{ github.event_name != 'pull_request' }}

+ 1
- 1
.github/workflows/phpunit-pgsql.yml View File

@@ -52,7 +52,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0']
php-versions: ['8.1']
# To keep the matrix smaller we ignore PostgreSQL '11', '13', '14' as we already test 10 and 15 as lower and upper bound
postgres-versions: ['10', '15', '16']
include:

+ 1
- 1
.github/workflows/phpunit-sqlite.yml View File

@@ -52,7 +52,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3']
include:
- php-versions: '8.1'
coverage: ${{ github.event_name != 'pull_request' }}

+ 3
- 3
.github/workflows/static-code-analysis.yml View File

@@ -22,7 +22,7 @@ jobs:
- name: Set up php
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
extensions: apcu,ctype,curl,dom,fileinfo,ftp,gd,intl,json,ldap,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
coverage: none
env:
@@ -56,7 +56,7 @@ jobs:
- name: Set up php
uses: shivammathur/setup-php@master
with:
php-version: '8.0'
php-version: '8.1'
extensions: ctype,curl,dom,fileinfo,ftp,gd,intl,json,ldap,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
coverage: none

@@ -84,7 +84,7 @@ jobs:
- name: Set up php
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
extensions: ctype,curl,dom,fileinfo,gd,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
coverage: none
env:

+ 1
- 1
.github/workflows/update-psalm-baseline.yml View File

@@ -27,7 +27,7 @@ jobs:
- name: Set up php
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
extensions: apcu,ctype,curl,dom,fileinfo,ftp,gd,intl,json,ldap,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
coverage: none
env:

+ 2
- 2
apps/settings/lib/SetupChecks/PhpOutdated.php View File

@@ -46,8 +46,8 @@ class PhpOutdated implements ISetupCheck {
}

public function run(): SetupResult {
if (PHP_VERSION_ID < 80100) {
return SetupResult::warning($this->l10n->t('You are currently running PHP %s. PHP 8.0 is now deprecated in Nextcloud 27. Nextcloud 28 may require at least PHP 8.1. Please upgrade to one of the officially supported PHP versions provided by the PHP Group as soon as possible.', [PHP_VERSION]), 'https://secure.php.net/supported-versions.php');
if (PHP_VERSION_ID < 80200) {
return SetupResult::warning($this->l10n->t('You are currently running PHP %s. PHP 8.1 is now deprecated in Nextcloud 30. Nextcloud 31 may require at least PHP 8.2. Please upgrade to one of the officially supported PHP versions provided by the PHP Group as soon as possible.', [PHP_VERSION]), 'https://secure.php.net/supported-versions.php');
}
return SetupResult::success($this->l10n->t('You are currently running PHP %s.', [PHP_VERSION]));
}

+ 2
- 2
composer.json View File

@@ -4,7 +4,7 @@
"optimize-autoloader": true,
"sort-packages": true,
"platform": {
"php": "8.0"
"php": "8.1"
},
"allow-plugins": {
"bamarni/composer-bin-plugin": true
@@ -23,7 +23,7 @@
}
},
"require": {
"php": "^8.0",
"php": "^8.1",
"ext-ctype": "*",
"ext-curl": "*",
"ext-dom": "*",

+ 2
- 2
lib/composer/composer/platform_check.php View File

@@ -4,8 +4,8 @@

$issues = array();

if (!(PHP_VERSION_ID >= 80000)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.0.0". You are running ' . PHP_VERSION . '.';
if (!(PHP_VERSION_ID >= 80100)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
}

if ($issues) {

+ 3
- 3
lib/versioncheck.php View File

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

Loading…
Cancel
Save