Skip to content

Commit 100e292

Browse files
authored
Merge pull request #414 from dotkernel/issue-413
Issue #413: Add PHP `8.5` support
2 parents 7079fce + 15cce13 commit 100e292

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

.github/workflows/codecov.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ jobs:
1818
- "8.2"
1919
- "8.3"
2020
- "8.4"
21+
- "8.5"
2122

2223
steps:
2324
- name: Checkout
24-
uses: actions/checkout@v5
25+
uses: actions/checkout@v6
2526

2627
- name: Install PHP
2728
uses: shivammathur/setup-php@v2
@@ -35,7 +36,7 @@ jobs:
3536
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
3637

3738
- name: Cache dependencies installed with composer
38-
uses: actions/cache@v4
39+
uses: actions/cache@v5
3940
with:
4041
path: ${{ env.COMPOSER_CACHE_DIR }}
4142
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}

.github/workflows/qodana_code_quality.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
checks: write
1717
strategy:
1818
matrix:
19-
php-versions: [ '8.2', '8.3', '8.4' ]
19+
php-versions: [ '8.2', '8.3', '8.4', '8.5' ]
2020
steps:
21-
- uses: actions/checkout@v5
21+
- uses: actions/checkout@v6
2222
with:
2323
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
2424
fetch-depth: 0 # a full history is required for pull request analysis
@@ -34,7 +34,7 @@ jobs:
3434
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
3535

3636
- name: Cache dependencies installed with composer
37-
uses: actions/cache@v4
37+
uses: actions/cache@v5
3838
with:
3939
path: ${{ env.COMPOSER_CACHE_DIR }}
4040
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}

.github/workflows/static-analysis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ jobs:
1818
- "8.2"
1919
- "8.3"
2020
- "8.4"
21+
- "8.5"
2122

2223
steps:
2324
- name: Checkout
24-
uses: actions/checkout@v5
25+
uses: actions/checkout@v6
2526

2627
- name: Install PHP
2728
uses: shivammathur/setup-php@v2
@@ -35,7 +36,7 @@ jobs:
3536
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
3637

3738
- name: Cache dependencies installed with composer
38-
uses: actions/cache@v4
39+
uses: actions/cache@v5
3940
with:
4041
path: ${{ env.COMPOSER_CACHE_DIR }}
4142
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Documentation is available at: https://docs.dotkernel.org/admin-documentation/
1616

1717
| Branch | Release | PSR-11 | OSS Lifecycle | PHP Version |
1818
|--------|----------|--------|----------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
19-
| 7.0 | `>= 7.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F7.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/7.0.0) |
19+
| 7.0 | `>= 7.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F7.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/7.1.0) |
2020
| 6.0 | `< 7.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F6.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/6.2.0) |
2121
| 5.0 | `< 6.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F5.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/5.0.3) |
2222
| 4.0 | `< 5.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F4.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/4.3.1) |

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| Branch | OSS Lifecycle | PHP Version |
66
|--------|----------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
7-
| 7.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F7.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/7.0.0) |
7+
| 7.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F7.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/7.1.0) |
88
| 6.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F6.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/6.2.0) |
99
| 5.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F5.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/5.0.3) |
1010
| 4.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F4.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/4.3.1) |

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"process-timeout": 0
2929
},
3030
"require": {
31-
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
31+
"php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
3232
"dotkernel/dot-cache": "^4.4.0",
3333
"dotkernel/dot-cli": "^3.10.0",
3434
"dotkernel/dot-data-fixtures": "^1.5.0",

src/Core/src/App/src/Service/IpService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function getUserIp(array $server): mixed
3232
} elseif (isset($server['HTTP_CLIENT_IP']) && self::isPublicIp($server['HTTP_CLIENT_IP'])) {
3333
$realIp = $server['HTTP_CLIENT_IP'];
3434
} else {
35-
$realIp = $server['REMOTE_ADDR'];
35+
$realIp = $server['REMOTE_ADDR'] ?? null;
3636
}
3737
} else {
3838
// check if HTTP_X_FORWARDED_FOR is public network IP

0 commit comments

Comments
 (0)