Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
il-masaru-yamagishi committed Sep 1, 2024
1 parent 24d204c commit 7c97512
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/HttpServer/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/**
* Route information
* @package Rayleigh\HttpServer
* @psalm-suppress PossiblyUnusedProperty
*/
final /* readonly */ class Route
{
Expand Down
7 changes: 3 additions & 4 deletions src/HttpServer/Tests/RoutingHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ public function testAddRoutes(): void
$routes = $handler->getRoutes();

self::assertCount(2, $routes);
self::assertCount(7, $routes['/']);;
self::assertCount(7, $routes['/']);
;
self::assertCount(1, $routes['*']);
}

Expand Down Expand Up @@ -144,9 +145,7 @@ public function testPlaceholderRoute(): void
$handler->post('/posts', $stubPost);

$mockGet = new class ($expected = $this->createMock(ResponseInterface::class)) implements RequestHandlerInterface {
public function __construct(private ResponseInterface $expected)
{
}
public function __construct(private ResponseInterface $expected) {}
public function handle(ServerRequestInterface $request): ResponseInterface
{
if ($request->getAttribute('user_id') !== '1') {
Expand Down

0 comments on commit 7c97512

Please sign in to comment.