Skip to content

Commit fca548d

Browse files
authored
chore: bump minimum required PHP 8.2 (#9701)
* chore: bump minimum required PHP 8.2 * chore: set minimum at workflow * docs: set minimum PHP 8.2 * refactor: set minimum PHP 8.2 * refactor: artifact upload with mysql_version when exists * refactor: target php setlist PHP 8.2 to Rector * revert docs on UploadedFiles * starter using ^4.7 * run rector & phpstan * revert change responsetrait and baseline * refactor: remove TODO * set minimum PHP 8.2 in utils * docs: requirement * docs: notes EOL
1 parent d25f87b commit fca548d

Some content is hidden

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

45 files changed

+128
-95
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ body:
2525
description: Which PHP versions did you run your code?
2626
multiple: true
2727
options:
28-
- '8.1'
2928
- '8.2'
3029
- '8.3'
3130
- '8.4'
31+
- '8.5'
3232
validations:
3333
required: true
3434

.github/workflows/deploy-apidocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Setup PHP
4444
uses: shivammathur/setup-php@v2
4545
with:
46-
php-version: '8.1'
46+
php-version: '8.2'
4747
tools: phive
4848
coverage: none
4949

.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.1'
33+
php-version: '8.2'
3434
coverage: none
3535

3636
- name: Setup Python

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
- name: Setup global environment variables
171171
run: |
172172
echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
173-
echo "ARTIFACT_NAME=${{ inputs.job-id || github.job }}-php-${{ inputs.php-version }}-db-${{ inputs.db-platform || 'none' }}" >> $GITHUB_ENV
173+
echo "ARTIFACT_NAME=${{ inputs.job-id || github.job }}-php-${{ inputs.php-version }}-db-${{ inputs.db-platform || 'none' }}${{ inputs.mysql-version || '' }}" >> $GITHUB_ENV
174174
175175
- name: Cache dependencies
176176
uses: actions/cache@v4

.github/workflows/test-autoreview.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
name: Automatic Code Review
2727
uses: ./.github/workflows/reusable-serviceless-phpunit-test.yml # @TODO Extract to codeigniter4/.github repo
2828
with:
29-
job-name: PHP 8.1
30-
php-version: '8.1'
29+
job-name: PHP 8.2
30+
php-version: '8.2'
3131
job-id: auto-review-tests
3232
group-name: AutoReview
3333

@@ -47,7 +47,7 @@ jobs:
4747
- name: Setup PHP
4848
uses: shivammathur/setup-php@v2
4949
with:
50-
php-version: '8.1'
50+
php-version: '8.2'
5151

5252
- name: Install dependencies
5353
run: composer update

.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.1'
31+
- '8.2'
3232
include:
3333
- php-version: '8.5'
3434
composer-option: '--ignore-platform-req=php'

.github/workflows/test-deptrac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Setup PHP
4949
uses: shivammathur/setup-php@v2
5050
with:
51-
php-version: '8.1'
51+
php-version: '8.2'
5252
tools: composer
5353
extensions: intl, json, mbstring, gd, mysqlnd, xdebug, xml, sqlite3
5454

.github/workflows/test-phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Setup PHP
5858
uses: shivammathur/setup-php@v2
5959
with:
60-
php-version: '8.1'
60+
php-version: '8.2'
6161
extensions: intl
6262
coverage: none
6363

.github/workflows/test-phpunit.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
strategy:
5757
matrix:
5858
php-version:
59-
- '8.1'
6059
- '8.2'
6160
- '8.3'
6261
- '8.4'
@@ -86,7 +85,6 @@ jobs:
8685
fail-fast: false
8786
matrix:
8887
php-version:
89-
- '8.1'
9088
- '8.2'
9189
- '8.3'
9290
- '8.4'
@@ -100,7 +98,7 @@ jobs:
10098
mysql-version:
10199
- '8.0'
102100
include:
103-
- php-version: '8.1'
101+
- php-version: '8.2'
104102
db-platform: MySQLi
105103
mysql-version: '5.7'
106104
- php-version: '8.5'
@@ -129,7 +127,6 @@ jobs:
129127
strategy:
130128
matrix:
131129
php-version:
132-
- '8.1'
133130
- '8.2'
134131
- '8.3'
135132
- '8.4'
@@ -158,7 +155,6 @@ jobs:
158155
strategy:
159156
matrix:
160157
php-version:
161-
- '8.1'
162158
- '8.2'
163159
- '8.3'
164160
- '8.4'

.github/workflows/test-psalm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
fail-fast: false
3030
matrix:
3131
php-version:
32-
- '8.1'
32+
- '8.2'
3333

3434
steps:
3535
- name: Checkout base branch for PR

0 commit comments

Comments
 (0)