Skip to content

Commit c938b10

Browse files
authored
Merge pull request #510 from dotkernel/issue-509
Issue #509: Bump phpunit to v12.5.23
2 parents ae306c6 + 33e4267 commit c938b10

22 files changed

Lines changed: 167 additions & 112 deletions

.github/workflows/codecov.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
- ubuntu-latest
1616

1717
php:
18-
- "8.2"
1918
- "8.3"
2019
- "8.4"
2120
- "8.5"

.github/workflows/qodana_code_quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
checks: write
1717
strategy:
1818
matrix:
19-
php-versions: [ '8.2', '8.3', '8.4', '8.5' ]
19+
php-versions: ['8.3', '8.4', '8.5' ]
2020
steps:
2121
- uses: actions/checkout@v4
2222
with:

.github/workflows/static-analysis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
- ubuntu-latest
1616

1717
php:
18-
- "8.2"
1918
- "8.3"
2019
- "8.4"
2120
- "8.5"

.github/workflows/validate-database-schema.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
- ubuntu-latest
2323

2424
php:
25-
- "8.2"
2625
- "8.3"
2726
- "8.4"
2827
- "8.5"

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Changelog
22

3+
## 7.1.0 - 2026-04-22
4+
5+
### Changed
6+
7+
* Issue [#509](https://github.com/dotkernel/api/issues/509): Bump `PHPUnit` to version `12.5.23` by [@SergiuBota1](https://github.com/SergiuBota1) in [#510](https://github.com/dotkernel/admin/pull/510)
8+
9+
### Added
10+
11+
* Nothing
12+
13+
### Deprecated
14+
15+
* Nothing
16+
17+
### Removed
18+
19+
* Removed PHP `8.2` support
20+
21+
### Fixed
22+
23+
* Fixed PHPUnit notices caused by mock objects without expectations configured
24+
* Fixed PHPUnit deprecation warnings caused by using `with()` on test stubs
25+
326
## 7.0.0 - 2025-11-26
427

528
### Changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ Documentation is available at: https://docs.dotkernel.org/api-documentation/
1414

1515
| Branch | Release | PSR-11 | OSS Lifecycle | PHP Version |
1616
|--------|----------|--------|--------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
17-
| 7.0 | `>= 7.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F7.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/7.0.0) |
17+
| 7.0 | `>= 7.1` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F7.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/7.1.0) |
18+
| 7.0 | `< 7.1` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F7.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/7.0.0) |
1819
| 6.0 | `< 7.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F6.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/6.1.0) |
1920
| 5.0 | `< 6.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F5.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/5.3.0) |
2021
| 4.0 | `< 5.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F4.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/4.5.0) |
@@ -30,10 +31,10 @@ Documentation is available at: https://docs.dotkernel.org/api-documentation/
3031
[![GitHub stars](https://img.shields.io/github/stars/dotkernel/api)](https://github.com/dotkernel/api/stargazers)
3132
[![GitHub license](https://img.shields.io/github/license/dotkernel/api)](https://github.com/dotkernel/api/blob/6.0/LICENSE.md)
3233

33-
[![Build Static](https://github.com/dotkernel/api/actions/workflows/continuous-integration.yml/badge.svg?branch=6.0)](https://github.com/dotkernel/api/actions/workflows/continuous-integration.yml)
34+
[![Build Static](https://github.com/dotkernel/api/actions/workflows/continuous-integration.yml/badge.svg?branch=7.0)](https://github.com/dotkernel/api/actions/workflows/continuous-integration.yml)
3435
[![codecov](https://codecov.io/gh/dotkernel/api/graph/badge.svg?token=53FN78G5CK)](https://codecov.io/gh/dotkernel/api)
35-
[![Qodana](https://github.com/dotkernel/api/actions/workflows/qodana_code_quality.yml/badge.svg?branch=6.0)](https://github.com/dotkernel/api/actions/workflows/qodana_code_quality.yml)
36-
[![PHPStan](https://github.com/dotkernel/api/actions/workflows/static-analysis.yml/badge.svg?branch=6.0)](https://github.com/dotkernel/api/actions/workflows/static-analysis.yml)
36+
[![Qodana](https://github.com/dotkernel/api/actions/workflows/qodana_code_quality.yml/badge.svg?branch=7.0)](https://github.com/dotkernel/api/actions/workflows/qodana_code_quality.yml)
37+
[![PHPStan](https://github.com/dotkernel/api/actions/workflows/static-analysis.yml/badge.svg?branch=7.0)](https://github.com/dotkernel/api/actions/workflows/static-analysis.yml)
3738

3839
## Getting Started
3940

SECURITY.md

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

55
| Version | Supported | PHP Version |
66
|---------|--------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
7+
| 7.1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F7.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/7.1.0) |
78
| 7.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F7.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/7.0.0) |
89
| 6.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F6.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/6.1.0) |
910
| 5.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F5.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/5.3.0) |

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
}
5050
},
5151
"require": {
52-
"php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
52+
"php": "~8.3.0 || ~8.4.0 || ~8.5.0",
5353
"ext-gd": "*",
5454
"ext-json": "*",
5555
"dotkernel/dot-cache": "^4.3",
@@ -89,7 +89,7 @@
8989
"phpstan/phpstan": "^2.1.11",
9090
"phpstan/phpstan-doctrine": "^2.0.2",
9191
"phpstan/phpstan-phpunit": "^2.0.6",
92-
"phpunit/phpunit": "^10.5.45",
92+
"phpunit/phpunit": "^12.5.23",
9393
"roave/security-advisories": "dev-latest",
9494
"symfony/var-dumper": "^7.2.3"
9595
},

phpunit.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
bootstrap="vendor/autoload.php"
55
stopOnError="true"
66
stopOnFailure="true"
7-
colors="true">
7+
colors="true"
8+
displayDetailsOnPhpunitNotices="true"
9+
displayDetailsOnTestsThatTriggerDeprecations="true"
10+
displayDetailsOnPhpunitDeprecations="true">
811
<testsuites>
912
<testsuite name="UnitTests">
1013
<directory>./test/Unit</directory>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class IpService
1919
* @phpstan-param array{
2020
* HTTP_X_FORWARDED_FOR?: string,
2121
* HTTP_CLIENT_IP?: string,
22-
* REMOTE_ADDR?: string,
22+
* REMOTE_ADDR: string,
2323
* } $server
2424
*/
2525
public static function getUserIp(array $server): mixed

0 commit comments

Comments
 (0)