Skip to content

Commit 9ef70f0

Browse files
committed
feat: drop support for php 8.0
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
1 parent 4299c37 commit 9ef70f0

26 files changed

+38
-38
lines changed

.github/workflows/files-external-ftp.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ jobs:
4141
# do not stop on another job's failure
4242
fail-fast: false
4343
matrix:
44-
php-versions: ['8.0', '8.3']
44+
php-versions: ['8.1', '8.3']
4545
ftpd: ['proftpd', 'vsftpd', 'pure-ftpd']
4646
include:
47-
- php-versions: '8.0'
47+
- php-versions: '8.1'
4848
coverage: ${{ github.event_name != 'pull_request' }}
4949

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

.github/workflows/files-external-s3.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

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

116116
strategy:
117117
matrix:
118-
php-versions: ['8.0', '8.1', '8.2', '8.3']
118+
php-versions: ['8.1', '8.2', '8.3']
119119
include:
120120
- php-versions: '8.3'
121121
coverage: true

.github/workflows/files-external-sftp.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
schedule:
55
- cron: "5 2 * * *"
6-
6+
77
concurrency:
88
group: files-external-sftp-${{ github.head_ref || github.run_id }}
99
cancel-in-progress: true
@@ -41,10 +41,10 @@ jobs:
4141
# do not stop on another job's failure
4242
fail-fast: false
4343
matrix:
44-
php-versions: ['8.0', '8.3']
44+
php-versions: ['8.1', '8.3']
4545
sftpd: ['openssh']
4646
include:
47-
- php-versions: '8.0'
47+
- php-versions: '8.1'
4848
coverage: ${{ github.event_name != 'pull_request' }}
4949

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

.github/workflows/files-external-smb.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939

4040
strategy:
4141
matrix:
42-
php-versions: ['8.0', '8.3']
42+
php-versions: ['8.1', '8.3']
4343
include:
44-
- php-versions: '8.0'
44+
- php-versions: '8.1'
4545
coverage: ${{ github.event_name != 'pull_request' }}
4646

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

.github/workflows/files-external-webdav.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
strategy:
4141
matrix:
42-
php-versions: ['8.0', '8.1', '8.2', '8.3']
42+
php-versions: ['8.1', '8.2', '8.3']
4343
include:
4444
- php-versions: '8.2'
4545
coverage: ${{ github.event_name != 'pull_request' }}

.github/workflows/files-external.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
strategy:
4040
matrix:
41-
php-versions: ['8.0', '8.1', '8.2', '8.3']
41+
php-versions: ['8.1', '8.2', '8.3']
4242
include:
4343
- php-versions: '8.2'
4444
coverage: ${{ github.event_name != 'pull_request' }}

.github/workflows/integration-s3-primary.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
# do not stop on another job's failure
4242
fail-fast: false
4343
matrix:
44-
php-versions: ['8.0']
44+
php-versions: ['8.1']
4545
key: ['objectstore', 'objectstore_multibucket']
4646

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

.github/workflows/lint-php.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747

4848
strategy:
4949
matrix:
50-
php-versions: [ "8.0", "8.1", "8.2", "8.3" ]
50+
php-versions: [ "8.1", "8.2", "8.3" ]
5151

5252
name: php-lint
5353

.github/workflows/object-storage-azure.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
strategy:
4545
matrix:
46-
php-versions: ['8.0', '8.1', '8.2', '8.3']
46+
php-versions: ['8.1', '8.2', '8.3']
4747
include:
4848
- php-versions: '8.3'
4949
coverage: true

.github/workflows/object-storage-s3.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
strategy:
4545
matrix:
46-
php-versions: ['8.0', '8.1', '8.2', '8.3']
46+
php-versions: ['8.1', '8.2', '8.3']
4747
include:
4848
- php-versions: '8.3'
4949
coverage: true

.github/workflows/object-storage-swift.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
strategy:
4545
matrix:
46-
php-versions: ['8.0', '8.1', '8.2', '8.3']
46+
php-versions: ['8.1', '8.2', '8.3']
4747
include:
4848
- php-versions: '8.3'
4949
coverage: true

.github/workflows/performance.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
php-versions: ['8.0']
18+
php-versions: ['8.1']
1919

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

.github/workflows/phpunit-32bits.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
strategy:
2828
matrix:
29-
php-versions: ['8.0','8.3']
29+
php-versions: ['8.1','8.3']
3030

3131
steps:
3232
- name: Checkout server

.github/workflows/phpunit-mariadb.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252

5353
strategy:
5454
matrix:
55-
php-versions: ['8.0']
55+
php-versions: ['8.1']
5656
mariadb-versions: ['10.3', '10.4', '10.5', '10.6', '10.11']
5757
include:
5858
- php-versions: '8.3'

.github/workflows/phpunit-memcached.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252

5353
strategy:
5454
matrix:
55-
php-versions: ['8.0', '8.1', '8.2', '8.3']
55+
php-versions: ['8.1', '8.2', '8.3']
5656
include:
5757
- php-versions: '8.2'
5858
coverage: ${{ github.event_name != 'pull_request' }}

.github/workflows/phpunit-mysql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252

5353
strategy:
5454
matrix:
55-
php-versions: ['8.0']
55+
php-versions: ['8.1']
5656
mysql-versions: ['8.0', '8.3']
5757
include:
5858
- mysql-versions: '8.0'

.github/workflows/phpunit-nodb.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
strategy:
5555
matrix:
56-
php-versions: ['8.0', '8.1', '8.2', '8.3']
56+
php-versions: ['8.1', '8.2', '8.3']
5757
include:
5858
- php-versions: '8.2'
5959
coverage: ${{ github.event_name != 'pull_request' }}

.github/workflows/phpunit-oci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
strategy:
4949
matrix:
5050
oracle-versions: ['11']
51-
php-versions: ['8.0', '8.1', '8.2', '8.3']
51+
php-versions: ['8.1', '8.2', '8.3']
5252
include:
5353
- php-versions: '8.3'
5454
coverage: ${{ github.event_name != 'pull_request' }}

.github/workflows/phpunit-pgsql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252

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

.github/workflows/phpunit-sqlite.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252

5353
strategy:
5454
matrix:
55-
php-versions: ['8.0', '8.1', '8.2', '8.3']
55+
php-versions: ['8.1', '8.2', '8.3']
5656
include:
5757
- php-versions: '8.1'
5858
coverage: ${{ github.event_name != 'pull_request' }}

.github/workflows/static-code-analysis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up php
2323
uses: shivammathur/setup-php@v2
2424
with:
25-
php-version: '8.0'
25+
php-version: '8.1'
2626
extensions: apcu,ctype,curl,dom,fileinfo,ftp,gd,intl,json,ldap,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
2727
coverage: none
2828
env:
@@ -56,7 +56,7 @@ jobs:
5656
- name: Set up php
5757
uses: shivammathur/setup-php@master
5858
with:
59-
php-version: '8.0'
59+
php-version: '8.1'
6060
extensions: ctype,curl,dom,fileinfo,ftp,gd,intl,json,ldap,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
6161
coverage: none
6262

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

.github/workflows/update-psalm-baseline.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up php
2828
uses: shivammathur/setup-php@v2
2929
with:
30-
php-version: '8.0'
30+
php-version: '8.1'
3131
extensions: apcu,ctype,curl,dom,fileinfo,ftp,gd,intl,json,ldap,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
3232
coverage: none
3333
env:

apps/settings/lib/SetupChecks/PhpOutdated.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public function getName(): string {
4646
}
4747

4848
public function run(): SetupResult {
49-
if (PHP_VERSION_ID < 80100) {
50-
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');
49+
if (PHP_VERSION_ID < 80200) {
50+
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');
5151
}
5252
return SetupResult::success($this->l10n->t('You are currently running PHP %s.', [PHP_VERSION]));
5353
}

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"optimize-autoloader": true,
55
"sort-packages": true,
66
"platform": {
7-
"php": "8.0"
7+
"php": "8.1"
88
},
99
"allow-plugins": {
1010
"bamarni/composer-bin-plugin": true
@@ -23,7 +23,7 @@
2323
}
2424
},
2525
"require": {
26-
"php": "^8.0",
26+
"php": "^8.1",
2727
"ext-ctype": "*",
2828
"ext-curl": "*",
2929
"ext-dom": "*",

lib/composer/composer/platform_check.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
$issues = array();
66

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

1111
if ($issues) {

lib/versioncheck.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
* along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
*
2727
*/
28-
// Show warning if a PHP version below 8.0 is used,
29-
if (PHP_VERSION_ID < 80000) {
28+
// Show warning if a PHP version below 8.1 is used,
29+
if (PHP_VERSION_ID < 80100) {
3030
http_response_code(500);
31-
echo 'This version of Nextcloud requires at least PHP 8.0<br/>';
31+
echo 'This version of Nextcloud requires at least PHP 8.1<br/>';
3232
echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
3333
exit(1);
3434
}

0 commit comments

Comments
 (0)