Skip to content

Commit 412d911

Browse files
committed
php85
1 parent db409b1 commit 412d911

8 files changed

Lines changed: 36 additions & 35 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,36 @@ on:
66
- cron: "0 0 * * *"
77

88
jobs:
9-
php82:
10-
name: PHP 8.2
9+
php83:
10+
name: PHP 8.3
1111
runs-on: ubuntu-24.04
1212
steps:
1313
- name: checkout
1414
uses: actions/checkout@v4
1515
- name: composer test
16-
uses: docker://ghcr.io/chubbyphp/ci-php82:latest
16+
uses: docker://ghcr.io/chubbyphp/ci-php83:latest
1717
env:
1818
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1919
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
20-
php83:
21-
name: PHP 8.3
20+
php84:
21+
name: PHP 8.4
2222
runs-on: ubuntu-24.04
2323
steps:
2424
- name: checkout
2525
uses: actions/checkout@v4
2626
- name: composer test
27-
uses: docker://ghcr.io/chubbyphp/ci-php83:latest
27+
uses: docker://ghcr.io/chubbyphp/ci-php84:latest
2828
env:
2929
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
31-
php84:
32-
name: PHP 8.4
31+
php85:
32+
name: PHP 8.5
3333
runs-on: ubuntu-24.04
3434
steps:
3535
- name: checkout
3636
uses: actions/checkout@v4
3737
- name: composer test
38-
uses: docker://ghcr.io/chubbyphp/ci-php84:latest
38+
uses: docker://ghcr.io/chubbyphp/ci-php85:latest
3939
env:
4040
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
$config = require __DIR__ . '/vendor/chubbyphp/chubbyphp-dev-helper/phpcs.php';
1414

1515
return (new PhpCsFixer\Config)
16+
->setUnsupportedPhpVersionAllowed(true)
1617
->setIndent($config['indent'])
1718
->setLineEnding($config['lineEnding'])
1819
->setRules($config['rules'])

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ A minimal, highly [performant][1] middleware [PSR-15][8] microframework built wi
3636

3737
## Requirements
3838

39-
* php: ^8.2
39+
* php: ^8.3
4040
* [chubbyphp/chubbyphp-http-exception][20]: ^1.2
4141
* [psr/container][21]: ^1.1.2|^2.0.2
4242
* [psr/http-factory-implementation][22]: ^1.0
@@ -53,7 +53,9 @@ A minimal, highly [performant][1] middleware [PSR-15][8] microframework built wi
5353

5454
Any Router which implements `Chubbyphp\Framework\Router\RouteMatcherInterface` can be used.
5555

56-
* [chubbyphp/chubbyphp-framework-router-fastroute][30]: ^2.1
56+
* [chubbyphp/chubbyphp-framework-router-fastroute][30]: ^2.3
57+
* [chubbyphp/chubbyphp-framework-router-symfony][31]: ^2.3
58+
5759
### PSR 7 / PSR 17
5860

5961
* [guzzlehttp/psr7][40]: ^2.7 (with [http-interop/http-factory-guzzle][41]: ^1.2)
@@ -67,8 +69,8 @@ Any Router which implements `Chubbyphp\Framework\Router\RouteMatcherInterface` c
6769
Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-framework][60].
6870

6971
```bash
70-
composer require chubbyphp/chubbyphp-framework "^5.2" \
71-
chubbyphp/chubbyphp-framework-router-fastroute "^2.1" \
72+
composer require chubbyphp/chubbyphp-framework "^5.3" \
73+
chubbyphp/chubbyphp-framework-router-fastroute "^2.3" \
7274
slim/psr7 "^1.7"
7375
```
7476

@@ -190,6 +192,7 @@ $app->emit($app->handle((new ServerRequestFactory())->createFromGlobals()));
190192
[28]: https://packagist.org/packages/psr/log
191193

192194
[30]: https://github.com/chubbyphp/chubbyphp-framework-router-fastroute#usage
195+
[31]: https://github.com/chubbyphp/chubbyphp-framework-router-symfony#usage
193196

194197
[40]: https://packagist.org/packages/guzzlehttp/psr7
195198
[41]: https://packagist.org/packages/http-interop/http-factory-guzzle

composer.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
],
2424
"require": {
25-
"php": "^8.2",
25+
"php": "^8.3",
2626
"chubbyphp/chubbyphp-http-exception": "^1.2",
2727
"psr/container": "^1.1.2|^2.0.2",
2828
"psr/http-factory-implementation": "^1.0",
@@ -35,18 +35,18 @@
3535
},
3636
"require-dev": {
3737
"chubbyphp/chubbyphp-dev-helper": "dev-master",
38-
"chubbyphp/chubbyphp-mock": "^2.0",
39-
"guzzlehttp/psr7": "^2.7",
38+
"chubbyphp/chubbyphp-mock": "^2.0.1",
39+
"guzzlehttp/psr7": "^2.8",
4040
"http-interop/http-factory-guzzle": "^1.2",
41-
"infection/infection": "^0.29.13",
42-
"laminas/laminas-diactoros": "^3.5",
41+
"infection/infection": "^0.31.9",
42+
"laminas/laminas-diactoros": "^3.8",
4343
"nyholm/psr7": "^1.8.2",
44-
"php-coveralls/php-coveralls": "^2.7.0",
44+
"php-coveralls/php-coveralls": "^2.9",
4545
"phpstan/extension-installer": "^1.4.3",
46-
"phpstan/phpstan": "^2.1.6",
47-
"phpunit/phpunit": "^11.5.10",
48-
"slim/psr7": "^1.7",
49-
"sunrise/http-message": "^3.4.2"
46+
"phpstan/phpstan": "^2.1.32",
47+
"phpunit/phpunit": "^12.4.5",
48+
"slim/psr7": "^1.8",
49+
"sunrise/http-message": "^3.7"
5050
},
5151
"autoload": {
5252
"psr-4": { "Chubbyphp\\Framework\\": "src/" }
@@ -63,11 +63,11 @@
6363
},
6464
"extra": {
6565
"branch-alias": {
66-
"dev-master": "5.2-dev"
66+
"dev-master": "5.3-dev"
6767
}
6868
},
6969
"scripts": {
70-
"fix:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --cache-file=build/phpcs.cache",
70+
"fix:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --cache-file=build/phpcs.cache",
7171
"test": [
7272
"@test:lint",
7373
"@test:unit",
@@ -76,7 +76,7 @@
7676
"@test:static-analysis",
7777
"@test:cs"
7878
],
79-
"test:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
79+
"test:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
8080
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=100 --verbose --coverage=build/phpunit",
8181
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-directory=build/phpunit",
8282
"test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",

src/Middleware/ExceptionMiddleware.php

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

1717
final class ExceptionMiddleware implements MiddlewareInterface
1818
{
19-
private const HTML = <<<'EOT'
19+
private const string HTML = <<<'EOT'
2020
<!DOCTYPE html>
2121
<html>
2222
<head>

src/Middleware/SlimCallbackMiddleware.php

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

1313
final class SlimCallbackMiddleware implements MiddlewareInterface
1414
{
15-
private const ATTRIBUTE_RESPONSE = 'response';
15+
private const string ATTRIBUTE_RESPONSE = 'response';
1616

1717
/**
1818
* @var callable

src/RequestHandler/SlimCallbackRequestHandler.php

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

1212
final class SlimCallbackRequestHandler implements RequestHandlerInterface
1313
{
14-
private const ATTRIBUTE_RESPONSE = 'response';
14+
private const string ATTRIBUTE_RESPONSE = 'response';
1515

1616
/**
1717
* @var callable

tests/Integration/RouteMatcherLessTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Laminas\Diactoros\ServerRequestFactory as LaminasServerRequestFactory;
1414
use Nyholm\Psr7\Factory\Psr17Factory as NyholmResponseFactory;
1515
use Nyholm\Psr7\Factory\Psr17Factory as NyholmServerRequestFactory;
16+
use PHPUnit\Framework\Attributes\DataProvider;
1617
use PHPUnit\Framework\TestCase;
1718
use Psr\Http\Message\ResponseFactoryInterface;
1819
use Psr\Http\Message\ServerRequestFactoryInterface;
@@ -28,9 +29,7 @@
2829
*/
2930
final class RouteMatcherLessTest extends TestCase
3031
{
31-
/**
32-
* @dataProvider providePsr7Implementations
33-
*/
32+
#[DataProvider('providePsr7Implementations')]
3433
public function testMissingRouteMatcherMiddleware(
3534
ResponseFactoryInterface $responseFactory,
3635
ServerRequestFactoryInterface $serverRequestFactory
@@ -54,9 +53,7 @@ public function testMissingRouteMatcherMiddleware(
5453
);
5554
}
5655

57-
/**
58-
* @dataProvider providePsr7Implementations
59-
*/
56+
#[DataProvider('providePsr7Implementations')]
6057
public function testMissingRouteMatcherMiddlewareWithoutExceptionMiddleware(
6158
ResponseFactoryInterface $responseFactory,
6259
ServerRequestFactoryInterface $serverRequestFactory

0 commit comments

Comments
 (0)