Skip to content

Commit 26bc784

Browse files
authored
Merge pull request #8042 from kenjis/drop-php-8.0-CI45
Drop PHP 8.0 support
2 parents 091abaf + 188c967 commit 26bc784

File tree

22 files changed

+22
-26
lines changed

22 files changed

+22
-26
lines changed

.github/workflows/deploy-userguide-latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup PHP
3131
uses: shivammathur/setup-php@v2
3232
with:
33-
php-version: '8.0'
33+
php-version: '8.1'
3434
coverage: none
3535

3636
# Build the latest User Guide

.github/workflows/reusable-phpunit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
# Service containers cannot be extracted to caller workflows yet
6767
services:
6868
mysql:
69-
image: mysql:${{ inputs.mysql-version || '8.0' }}
69+
image: mysql:${{ inputs.mysql-version || '8.1' }}
7070
env:
7171
MYSQL_ALLOW_EMPTY_PASSWORD: yes
7272
MYSQL_DATABASE: test

.github/workflows/test-coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
php-version:
31-
- '8.0'
31+
- '8.1'
3232
- '8.2'
3333

3434
steps:

.github/workflows/test-phpcpd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup PHP
4242
uses: shivammathur/setup-php@v2
4343
with:
44-
php-version: '8.0'
44+
php-version: '8.1'
4545
tools: phpcpd
4646
extensions: dom, mbstring
4747

.github/workflows/test-phpunit.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ jobs:
5555
strategy:
5656
matrix:
5757
php-version:
58-
- '8.0'
5958
- '8.1'
6059
- '8.2'
6160
- '8.3'
@@ -84,7 +83,6 @@ jobs:
8483
fail-fast: false
8584
matrix:
8685
php-version:
87-
- '8.0'
8886
- '8.1'
8987
- '8.2'
9088
- '8.3'
@@ -97,7 +95,7 @@ jobs:
9795
mysql-version:
9896
- '5.7'
9997
include:
100-
- php-version: '8.0'
98+
- php-version: '8.1'
10199
db-platform: MySQLi
102100
mysql-version: '8.0'
103101
- php-version: '8.3'
@@ -125,7 +123,6 @@ jobs:
125123
strategy:
126124
matrix:
127125
php-version:
128-
- '8.0'
129126
- '8.1'
130127
- '8.2'
131128
- '8.3'
@@ -153,7 +150,6 @@ jobs:
153150
strategy:
154151
matrix:
155152
php-version:
156-
- '8.0'
157153
- '8.1'
158154
- '8.2'
159155
- '8.3'

.github/workflows/test-rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
strategy:
4646
fail-fast: false
4747
matrix:
48-
php-versions: ['8.0', '8.2']
48+
php-versions: ['8.1', '8.3']
4949
paths:
5050
- app
5151
- system

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Made with [contrib.rocks](https://contrib.rocks).
8686

8787
## Server Requirements
8888

89-
PHP version 8.0 or higher is required, with the following extensions installed:
89+
PHP version 8.1 or higher is required, with the following extensions installed:
9090

9191
- [intl](http://php.net/manual/en/intl.requirements.php)
9292
- [mbstring](http://php.net/manual/en/mbstring.installation.php)

admin/framework/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Please read the [*Contributing to CodeIgniter*](https://github.com/codeigniter4/
4242

4343
## Server Requirements
4444

45-
PHP version 8.0 or higher is required, with the following extensions installed:
45+
PHP version 8.1 or higher is required, with the following extensions installed:
4646

4747
- [intl](http://php.net/manual/en/intl.requirements.php)
4848
- [mbstring](http://php.net/manual/en/mbstring.installation.php)

admin/framework/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"slack": "https://codeigniterchat.slack.com"
1111
},
1212
"require": {
13-
"php": "^8.0",
13+
"php": "^8.1",
1414
"ext-intl": "*",
1515
"ext-json": "*",
1616
"ext-mbstring": "*",

admin/starter/.github/workflows/phpunit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
php-versions: ['8.0', '8.2']
14+
php-versions: ['8.1', '8.3']
1515

1616
runs-on: ubuntu-latest
1717

admin/starter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Problems with it can be raised on our forum, or as issues in the main repository
5050

5151
## Server Requirements
5252

53-
PHP version 8.0 or higher is required, with the following extensions installed:
53+
PHP version 8.1 or higher is required, with the following extensions installed:
5454

5555
- [intl](http://php.net/manual/en/intl.requirements.php)
5656
- [mbstring](http://php.net/manual/en/mbstring.installation.php)

admin/starter/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"slack": "https://codeigniterchat.slack.com"
1111
},
1212
"require": {
13-
"php": "^8.0",
13+
"php": "^8.1",
1414
"codeigniter4/framework": "^4.0"
1515
},
1616
"require-dev": {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"slack": "https://codeigniterchat.slack.com"
1111
},
1212
"require": {
13-
"php": "^8.0",
13+
"php": "^8.1",
1414
"ext-intl": "*",
1515
"ext-json": "*",
1616
"ext-mbstring": "*",

contributing/pull_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ See [Contribution CSS](./css.md).
136136

137137
### Compatibility
138138

139-
CodeIgniter4 requires [PHP 8.0](https://php.net/releases/8_0_0.php).
139+
CodeIgniter4 requires [PHP 8.1](https://php.net/releases/8_1_0.php).
140140

141141
### Backwards Compatibility
142142

public/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
// Check PHP version.
4-
$minPhpVersion = '8.0'; // If you update this, don't forget to update `spark`.
4+
$minPhpVersion = '8.1'; // If you update this, don't forget to update `spark`.
55
if (version_compare(PHP_VERSION, $minPhpVersion, '<')) {
66
$message = sprintf(
77
'Your PHP version must be %s or higher to run CodeIgniter. Current version: %s',

spark

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (strpos(PHP_SAPI, 'cgi') === 0) {
2727
}
2828

2929
// Check PHP version.
30-
$minPhpVersion = '8.0'; // If you update this, don't forget to update `public/index.php`.
30+
$minPhpVersion = '8.1'; // If you update this, don't forget to update `public/index.php`.
3131
if (version_compare(PHP_VERSION, $minPhpVersion, '<')) {
3232
$message = sprintf(
3333
'Your PHP version must be %s or higher to run CodeIgniter. Current version: %s',

system/Cookie/Cookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ public function toHeaderString(): string
633633
/**
634634
* {@inheritDoc}
635635
*/
636-
public function __toString()
636+
public function __toString(): string
637637
{
638638
$cookieHeader = [];
639639

system/View/Cells/Cell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ final protected function view(?string $view, array $data = []): string
118118
/**
119119
* Provides capability to render on string casting.
120120
*/
121-
public function __toString()
121+
public function __toString(): string
122122
{
123123
return $this->render();
124124
}

user_guide_src/source/changelogs/v4.5.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Release Date: Unreleased
1212
Highlights
1313
**********
1414

15-
- Update minimal PHP requirement to 8.0.
15+
- Update minimal PHP requirement to 8.1.
1616
- TBD
1717

1818
BREAKING

user_guide_src/source/installation/installing_composer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ edit **composer.json** manually.
142142
If you try the ``4.6`` branch, change the version to ``4.6.x-dev``::
143143

144144
"require": {
145-
"php": "^8.0",
145+
"php": "^8.1",
146146
"codeigniter4/codeigniter4": "4.6.x-dev"
147147
},
148148

user_guide_src/source/installation/upgrade_4xx.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Downloads
4141
Namespaces
4242
==========
4343

44-
- CI4 is built for PHP 8.0+, and everything in the framework is namespaced,
44+
- CI4 is built for PHP 8.1+, and everything in the framework is namespaced,
4545
except for the helper and lang files.
4646

4747
Application Structure

user_guide_src/source/intro/requirements.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Server Requirements
1010
PHP and Required Extensions
1111
***************************
1212

13-
`PHP <https://www.php.net/>`_ version 8.0 or newer is required, with the following PHP extensions are enabled:
13+
`PHP <https://www.php.net/>`_ version 8.1 or newer is required, with the following PHP extensions are enabled:
1414

1515
- `intl <https://www.php.net/manual/en/intl.requirements.php>`_
1616
- `mbstring <https://www.php.net/manual/en/mbstring.requirements.php>`_

0 commit comments

Comments
 (0)