Skip to content

Commit 56642b2

Browse files
committed
php 8.4 and phpunit 11
1 parent 599550c commit 56642b2

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

.github/workflows/ci.yml

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

88
jobs:
9-
php81:
10-
name: PHP 8.1
11-
runs-on: ubuntu-22.04
9+
php82:
10+
name: PHP 8.2
11+
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-php81:latest
16+
uses: docker://ghcr.io/chubbyphp/ci-php82:latest
1717
env:
1818
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1919
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
20-
php82:
21-
name: PHP 8.2
22-
runs-on: ubuntu-22.04
20+
php83:
21+
name: PHP 8.3
22+
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-php82:latest
27+
uses: docker://ghcr.io/chubbyphp/ci-php83:latest
2828
env:
2929
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
31-
php83:
32-
name: PHP 8.3
33-
runs-on: ubuntu-22.04
31+
php84:
32+
name: PHP 8.4
33+
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-php83:latest
38+
uses: docker://ghcr.io/chubbyphp/ci-php84:latest
3939
env:
4040
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ A request handler adapter for workerman, using PSR-7, PSR-15 and PSR-17.
2525

2626
## Requirements
2727

28-
* php: ^8.1
29-
* [psr/http-factory][2]: ^1.0.2
28+
* php: ^8.2
29+
* [psr/http-factory][2]: ^1.1
3030
* [psr/http-message][3]: ^1.1|^2.0
3131
* [psr/http-server-handler][4]: ^1.0.2
32-
* [psr/log][5]: ^2.0|^3.0
33-
* [workerman/workerman][6]: ^4.1.13
32+
* [psr/log][5]: ^2.0|^3.0.2
33+
* [workerman/workerman][6]: ^4.2.1
3434

3535
## Installation
3636

3737
Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-workerman-request-handler][1].
3838

3939
```sh
40-
composer require chubbyphp/chubbyphp-workerman-request-handler "^2.1"
40+
composer require chubbyphp/chubbyphp-workerman-request-handler "^2.2"
4141
```
4242

4343
## Usage

composer.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^8.1",
21-
"psr/http-factory": "^1.0.2",
20+
"php": "^8.2",
21+
"psr/http-factory": "^1.1",
2222
"psr/http-message": "^1.1|^2.0",
2323
"psr/http-server-handler": "^1.0.2",
24-
"psr/log": "^2.0|^3.0",
25-
"workerman/workerman": "^4.1.13"
24+
"psr/log": "^2.0|^3.0.2",
25+
"workerman/workerman": "^4.2.1"
2626
},
2727
"require-dev": {
28-
"blackfire/php-sdk": "^2.3.5",
28+
"blackfire/php-sdk": "^2.5.4",
2929
"chubbyphp/chubbyphp-dev-helper": "dev-master",
30-
"chubbyphp/chubbyphp-mock": "^1.7",
31-
"infection/infection": "^0.27.8",
30+
"chubbyphp/chubbyphp-mock": "^1.8",
31+
"infection/infection": "^0.29.8",
3232
"php-coveralls/php-coveralls": "^2.7",
33-
"phpstan/extension-installer": "^1.3.1",
34-
"phpstan/phpstan": "^1.10.45",
35-
"phpunit/phpunit": "^10.4.2"
33+
"phpstan/extension-installer": "^1.4.3",
34+
"phpstan/phpstan": "^2.0.3",
35+
"phpunit/phpunit": "^11.5.0"
3636
},
3737
"autoload": {
3838
"psr-4": { "Chubbyphp\\WorkermanRequestHandler\\": "src/" }
@@ -49,7 +49,7 @@
4949
},
5050
"extra": {
5151
"branch-alias": {
52-
"dev-master": "2.1-dev"
52+
"dev-master": "2.2-dev"
5353
}
5454
},
5555
"scripts": {
@@ -64,9 +64,9 @@
6464
],
6565
"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",
6666
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=100 --verbose --coverage=build/phpunit",
67-
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/result.cache",
67+
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-directory=build/phpunit",
6868
"test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",
6969
"test:static-analysis": "mkdir -p build && bash -c 'vendor/bin/phpstan analyse src --no-progress --level=7 --error-format=junit | tee build/phpstan.junit.xml; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
70-
"test:unit": "vendor/bin/phpunit --testsuite=Unit --coverage-text --coverage-clover=build/phpunit/clover.xml --coverage-html=build/phpunit/coverage-html --coverage-xml=build/phpunit/coverage-xml --log-junit=build/phpunit/junit.xml --cache-result-file=build/phpunit/result.cache"
70+
"test:unit": "vendor/bin/phpunit --testsuite=Unit --coverage-text --coverage-clover=build/phpunit/clover.xml --coverage-html=build/phpunit/coverage-html --coverage-xml=build/phpunit/coverage-xml --log-junit=build/phpunit/junit.xml --cache-directory=build/phpunit"
7171
}
7272
}

src/Adapter/BlackfireOnMessageAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private function startProbe(): ?Probe
5454
try {
5555
return $this->client->createProbe($this->config);
5656
} catch (ExceptionInterface $exception) {
57-
$this->logger->error(sprintf('Blackfire exception: %s', $exception->getMessage()));
57+
$this->logger->error(\sprintf('Blackfire exception: %s', $exception->getMessage()));
5858
}
5959

6060
return null;
@@ -65,7 +65,7 @@ private function endProbe(Probe $probe): void
6565
try {
6666
$this->client->endProbe($probe);
6767
} catch (ExceptionInterface $exception) {
68-
$this->logger->error(sprintf('Blackfire exception: %s', $exception->getMessage()));
68+
$this->logger->error(\sprintf('Blackfire exception: %s', $exception->getMessage()));
6969
}
7070
}
7171
}

0 commit comments

Comments
 (0)