Skip to content

Commit

Permalink
Changed class elements order
Browse files Browse the repository at this point in the history
  • Loading branch information
shudd3r committed Jan 29, 2025
1 parent 582470e commit 709541f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"psr/http-server-middleware": "^1.0"
},
"require-dev": {
"polymorphine/dev": "0.5.*"
"polymorphine/dev": "0.6.*"
},
"autoload": {
"psr-4": {
Expand Down
12 changes: 6 additions & 6 deletions tests/Doubles/MockedMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ class MockedMiddleware implements MiddlewareInterface
public static bool $instance = false;
public static array $processedInstances = [];

public static function reset(): void
{
self::$instance = false;
self::$processedInstances = [];
}

private string $id;

public function __construct(string $id)
Expand All @@ -30,12 +36,6 @@ public function __construct(string $id)
self::$instance = true;
}

public static function reset(): void
{
self::$instance = false;
self::$processedInstances = [];
}

public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
self::$processedInstances[] = $this->id;
Expand Down

0 comments on commit 709541f

Please # to comment.