Skip to content

Commit 760dbf4

Browse files
authored
Merge pull request #7924 from kenjis/drop-php-7.4-CI45
Drop PHP 7.4 support
2 parents e6015fa + 83865ae commit 760dbf4

23 files changed

Lines changed: 38 additions & 66 deletions

File tree

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

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

3434
steps:
3535
- name: Checkout

‎.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-
- '7.4'
5958
- '8.0'
6059
- '8.1'
6160
- '8.2'
@@ -85,7 +84,6 @@ jobs:
8584
fail-fast: false
8685
matrix:
8786
php-version:
88-
- '7.4'
8987
- '8.0'
9088
- '8.1'
9189
- '8.2'
@@ -99,7 +97,7 @@ jobs:
9997
mysql-version:
10098
- '5.7'
10199
include:
102-
- php-version: '7.4'
100+
- php-version: '8.0'
103101
db-platform: MySQLi
104102
mysql-version: '8.0'
105103
- php-version: '8.3'
@@ -127,7 +125,6 @@ jobs:
127125
strategy:
128126
matrix:
129127
php-version:
130-
- '7.4'
131128
- '8.0'
132129
- '8.1'
133130
- '8.2'
@@ -156,7 +153,6 @@ jobs:
156153
strategy:
157154
matrix:
158155
php-version:
159-
- '7.4'
160156
- '8.0'
161157
- '8.1'
162158
- '8.2'

‎.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: ['7.4', '8.0']
48+
php-versions: ['8.0', '8.2']
4949
paths:
5050
- app
5151
- system

‎.php-cs-fixer.dist.php‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,10 @@
8080
'admin@codeigniter.com'
8181
);
8282

83-
// @TODO: remove this check when support for PHP 7.4 is dropped
84-
if (PHP_VERSION_ID >= 80000) {
85-
$config
86-
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
87-
->setRules(array_merge($config->getRules(), [
88-
NoCodeSeparatorCommentFixer::name() => true,
89-
]));
90-
}
83+
$config
84+
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
85+
->setRules(array_merge($config->getRules(), [
86+
NoCodeSeparatorCommentFixer::name() => true,
87+
]));
9188

9289
return $config;

‎.php-cs-fixer.no-header.php‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,10 @@
6262

6363
$config = Factory::create(new CodeIgniter4(), $overrides, $options)->forProjects();
6464

65-
// @TODO: remove this check when support for PHP 7.4 is dropped
66-
if (PHP_VERSION_ID >= 80000) {
67-
$config
68-
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
69-
->setRules(array_merge($config->getRules(), [
70-
NoCodeSeparatorCommentFixer::name() => true,
71-
]));
72-
}
65+
$config
66+
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
67+
->setRules(array_merge($config->getRules(), [
68+
NoCodeSeparatorCommentFixer::name() => true,
69+
]));
7370

7471
return $config;

‎.php-cs-fixer.user-guide.php‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,10 @@
6767

6868
$config = Factory::create(new CodeIgniter4(), $overrides, $options)->forProjects();
6969

70-
// @TODO: remove this check when support for PHP 7.4 is dropped
71-
if (PHP_VERSION_ID >= 80000) {
72-
$config
73-
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
74-
->setRules(array_merge($config->getRules(), [
75-
NoCodeSeparatorCommentFixer::name() => true,
76-
]));
77-
}
70+
$config
71+
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
72+
->setRules(array_merge($config->getRules(), [
73+
NoCodeSeparatorCommentFixer::name() => true,
74+
]));
7875

7976
return $config;

‎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 7.4 or higher is required, with the following extensions installed:
89+
PHP version 8.0 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 7.4 or higher is required, with the following extensions installed:
45+
PHP version 8.0 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": "^7.4 || ^8.0",
13+
"php": "^8.0",
1414
"ext-intl": "*",
1515
"ext-json": "*",
1616
"ext-mbstring": "*",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: PHPUnit
22

33
on:
44
pull_request:
5-
branches:
5+
branches:
66
- develop
77

88
jobs:
@@ -11,7 +11,7 @@ jobs:
1111

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

1616
runs-on: ubuntu-latest
1717

0 commit comments

Comments
 (0)