Skip to content

Commit c4a89e1

Browse files
authored
Merge pull request #8723 from codeigniter4/develop
4.5.0 Ready code
2 parents e134990 + 37b5ca0 commit c4a89e1

File tree

1,084 files changed

+20447
-7394
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,084 files changed

+20447
-7394
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-coveralls.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ jobs:
6363
vendor/bin/phpcov merge --clover build/logs/clover.xml build/cov
6464
6565
- name: Upload coverage to Coveralls
66-
run: vendor/bin/php-coveralls --verbose --exclude-no-stmt --ansi
66+
run: |
67+
composer global require php-coveralls/php-coveralls
68+
php-coveralls --verbose --exclude-no-stmt --ansi
6769
env:
6870
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

Lines changed: 2 additions & 2 deletions
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'
32-
- '8.0'
31+
- '8.1'
32+
- '8.2'
3333

3434
steps:
3535
- name: Checkout

.github/workflows/test-phpcpd.yml

Lines changed: 3 additions & 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

@@ -57,4 +57,6 @@ jobs:
5757
--exclude system/Debug/Exceptions.php
5858
--exclude system/HTTP/SiteURI.php
5959
--exclude system/Validation/Rules.php
60+
--exclude system/Autoloader/Autoloader.php
61+
--exclude system/Config/Filters.php
6062
-- app/ public/ system/

.github/workflows/test-phpunit.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
steps:
4848
- id: coverage-php-version
4949
run: |
50-
echo "version=8.1" >> $GITHUB_OUTPUT
50+
echo "version=8.2" >> $GITHUB_OUTPUT
5151
5252
sanity-tests:
5353
name: Others
@@ -56,8 +56,6 @@ jobs:
5656
strategy:
5757
matrix:
5858
php-version:
59-
- '7.4'
60-
- '8.0'
6159
- '8.1'
6260
- '8.2'
6361
- '8.3'
@@ -87,8 +85,6 @@ jobs:
8785
fail-fast: false
8886
matrix:
8987
php-version:
90-
- '7.4'
91-
- '8.0'
9288
- '8.1'
9389
- '8.2'
9490
- '8.3'
@@ -101,7 +97,7 @@ jobs:
10197
mysql-version:
10298
- '8.0'
10399
include:
104-
- php-version: '7.4'
100+
- php-version: '8.1'
105101
db-platform: MySQLi
106102
mysql-version: '5.7'
107103
- php-version: '8.3'
@@ -130,8 +126,6 @@ jobs:
130126
strategy:
131127
matrix:
132128
php-version:
133-
- '7.4'
134-
- '8.0'
135129
- '8.1'
136130
- '8.2'
137131
- '8.3'
@@ -160,8 +154,6 @@ jobs:
160154
strategy:
161155
matrix:
162156
php-version:
163-
- '7.4'
164-
- '8.0'
165157
- '8.1'
166158
- '8.2'
167159
- '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: ['7.4', '8.0']
48+
php-versions: ['8.1', '8.3']
4949
steps:
5050
- name: Checkout
5151
uses: actions/checkout@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,6 @@ nb-configuration.xml
126126
/results/
127127
/phpunit*.xml
128128
/.phpunit.*.cache
129+
/.phpunit.cache
129130

130131
/.php-cs-fixer.php

.php-cs-fixer.dist.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,10 @@
5656
5757
);
5858

59-
// @TODO: remove this check when support for PHP 7.4 is dropped
60-
if (PHP_VERSION_ID >= 80000) {
61-
$config
62-
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
63-
->setRules(array_merge($config->getRules(), [
64-
NoCodeSeparatorCommentFixer::name() => true,
65-
]));
66-
}
59+
$config
60+
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
61+
->setRules(array_merge($config->getRules(), [
62+
NoCodeSeparatorCommentFixer::name() => true,
63+
]));
6764

6865
return $config;

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

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

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

41-
// @TODO: remove this check when support for PHP 7.4 is dropped
42-
if (PHP_VERSION_ID >= 80000) {
43-
$config
44-
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
45-
->setRules(array_merge($config->getRules(), [
46-
NoCodeSeparatorCommentFixer::name() => true,
47-
]));
48-
}
41+
$config
42+
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
43+
->setRules(array_merge($config->getRules(), [
44+
NoCodeSeparatorCommentFixer::name() => true,
45+
]));
4946

5047
return $config;

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

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

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

51-
// @TODO: remove this check when support for PHP 7.4 is dropped
52-
if (PHP_VERSION_ID >= 80000) {
53-
$config
54-
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
55-
->setRules(array_merge($config->getRules(), [
56-
NoCodeSeparatorCommentFixer::name() => true,
57-
]));
58-
}
51+
$config
52+
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
53+
->setRules(array_merge($config->getRules(), [
54+
NoCodeSeparatorCommentFixer::name() => true,
55+
]));
5956

6057
return $config;

0 commit comments

Comments
 (0)