Skip to content

Commit

Permalink
Backward compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jenky committed Jun 29, 2023
1 parent 738ed6b commit 302da48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion tests/AkamaiTileRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@

final class AkamaiTileRequest extends Request
{
public function __construct(private int $i)
/**
* @var int
*/
private $i;

public function __construct(int $i)
{
$this->i = $i;
}

public function endpoint(): string
Expand Down
4 changes: 3 additions & 1 deletion tests/PoolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ public function test_sending_lots_of_requests(): void
$connector = new NullConnector();

$connector->middleware()->push(
Interceptor::response(fn (ResponseInterface $response) => $response->withHeader('X-Foo', 'baz'))
Interceptor::response(function (ResponseInterface $response) {
return $response->withHeader('X-Foo', 'baz');
})
);

for ($i=0; $i < 100; $i++) {
Expand Down

0 comments on commit 302da48

Please sign in to comment.