Skip to content

Commit 8c2826c

Browse files
committed
phpstan level 9
opencode (opus 4.5)
1 parent 3d5566b commit 8c2826c

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ A minimal, highly [performant][1] middleware [PSR-15][8] microframework built wi
3737
## Requirements
3838

3939
* php: ^8.3
40-
* [chubbyphp/chubbyphp-http-exception][20]: ^1.2
40+
* [chubbyphp/chubbyphp-http-exception][20]: ^1.3.1
4141
* [psr/container][21]: ^1.1.2|^2.0.2
4242
* [psr/http-factory-implementation][22]: ^1.0
4343
* [psr/http-factory][23]: ^1.1

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
],
2424
"require": {
2525
"php": "^8.3",
26-
"chubbyphp/chubbyphp-http-exception": "^1.2",
26+
"chubbyphp/chubbyphp-http-exception": "^1.3.1",
2727
"psr/container": "^1.1.2|^2.0.2",
2828
"psr/http-factory-implementation": "^1.0",
2929
"psr/http-factory": "^1.1",
@@ -80,7 +80,7 @@
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",
83-
"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'",
83+
"test:static-analysis": "mkdir -p build && bash -c 'vendor/bin/phpstan analyse src --no-progress --level=9 --error-format=junit | tee build/phpstan.junit.xml; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
8484
"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"
8585
}
8686
}

phpstan.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
parameters:
2-
ignoreErrors: []

src/Middleware/ExceptionMiddleware.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private function exceptionToHttpException(\Throwable $exception): HttpExceptionI
236236
}
237237

238238
/**
239-
* @return array<int, array<string, mixed>>
239+
* @return array<int, array{class: string, message: string, code: int, file: string, line: int, trace: string}>
240240
*/
241241
private function toExceptionsArray(\Throwable $exception): array
242242
{
@@ -256,7 +256,7 @@ private function toExceptionsArray(\Throwable $exception): array
256256
}
257257

258258
/**
259-
* @param array<array<string, string>> $exceptionsData
259+
* @param array<int, array{class: string, message: string, code: int, file: string, line: int, trace: string}> $exceptionsData
260260
*/
261261
private function addDebugToBody(array $exceptionsData): string
262262
{

0 commit comments

Comments
 (0)