Skip to content

Commit 44ea07b

Browse files
committed
php 8.4 and phpunit 11
1 parent 9651c99 commit 44ea07b

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A minimal static file middleware for PSR 15.
2626

2727
## Requirements
2828

29-
* php: ^8.1
29+
* php: ^8.2
3030
* [psr/http-factory][2]: ^1.0.2
3131
* [psr/http-message][3]: ^1.1|^2.0
3232
* [psr/http-server-handler][4]: ^1.0.2
@@ -37,7 +37,7 @@ A minimal static file middleware for PSR 15.
3737
Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-static-file][1].
3838

3939
```sh
40-
composer require chubbyphp/chubbyphp-static-file "^1.3"
40+
composer require chubbyphp/chubbyphp-static-file "^1.4"
4141
```
4242

4343
## Usage

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
}
1515
],
1616
"require": {
17-
"php": "^8.1",
18-
"psr/http-factory": "^1.0.2",
17+
"php": "^8.2",
18+
"psr/http-factory": "^1.1",
1919
"psr/http-message": "^1.1|^2.0",
2020
"psr/http-server-handler": "^1.0.2",
2121
"psr/http-server-middleware": "^1.0.2"
2222
},
2323
"require-dev": {
2424
"chubbyphp/chubbyphp-dev-helper": "dev-master",
25-
"chubbyphp/chubbyphp-mock": "^1.7",
26-
"infection/infection": "^0.27.8",
25+
"chubbyphp/chubbyphp-mock": "^1.8",
26+
"infection/infection": "^0.29.8",
2727
"php-coveralls/php-coveralls": "^2.7.0",
28-
"phpstan/extension-installer": "^1.3.1",
29-
"phpstan/phpstan": "^1.10.45",
30-
"phpunit/phpunit": "^10.4.2"
28+
"phpstan/extension-installer": "^1.4.3",
29+
"phpstan/phpstan": "^2.0.3",
30+
"phpunit/phpunit": "^11.5.0"
3131
},
3232
"autoload": {
3333
"psr-4": { "Chubbyphp\\StaticFile\\": "src/" }
@@ -44,7 +44,7 @@
4444
},
4545
"extra": {
4646
"branch-alias": {
47-
"dev-master": "1.3-dev"
47+
"dev-master": "1.4-dev"
4848
}
4949
},
5050
"scripts": {
@@ -59,9 +59,9 @@
5959
],
6060
"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",
6161
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=90 --verbose --coverage=build/phpunit",
62-
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/result.cache",
62+
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-directory=build/phpunit",
6363
"test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",
6464
"test:static-analysis": "mkdir -p build && bash -c 'vendor/bin/phpstan analyse src --no-progress --level=8 --error-format=junit | tee build/phpstan.junit.xml; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
65-
"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"
65+
"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"
6666
}
6767
}

src/StaticFileMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(
3131
?array $mimetypes = null,
3232
) {
3333
if (!\in_array($hashAlgorithm, hash_algos(), true)) {
34-
throw new \LogicException(sprintf('Invalid or not supported hash algorithm: "%s"', $hashAlgorithm));
34+
throw new \LogicException(\sprintf('Invalid or not supported hash algorithm: "%s"', $hashAlgorithm));
3535
}
3636
$this->hashAlgorithm = $hashAlgorithm;
3737
$this->mimetypes = $mimetypes ?? (array) require __DIR__.'/mimetypes.php';

0 commit comments

Comments
 (0)