Skip to content

Commit

Permalink
fix: Psalm errors
Browse files Browse the repository at this point in the history
Part of #8
  • Loading branch information
Gashmob committed May 8, 2024
1 parent 8c4a345 commit bf6e52b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"scripts": {
"unit-test": "phpunit --testsuite unit",
"phpstan": "phpstan analyse -c phpstan.neon",
"psalm": "psalm -c psalm.xml",
"psalm": "psalm -c psalm.xml --no-cache",
"phpcs": "phpcs include tests"
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Route/RouteHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function testItTransformCallableToRequestHandler(): void
public function testItTransformCallableToMiddleware(): void
{
$request = new ServerRequest('GET', 'route');
$callable = static fn(ServerRequestInterface $request) => $request;
$callable = static fn(ServerRequestInterface $request): ServerRequestInterface => $request;
$handler = RouteHelper::callableToMiddleware($callable);

self::assertInstanceOf(Middleware::class, $handler);
Expand Down

0 comments on commit bf6e52b

Please sign in to comment.