Skip to content

Commit 358343c

Browse files
committed
Make the browser required
1 parent d05bed8 commit 358343c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/OpenAPI/ApiGitHubCom/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ final class Client
77
private readonly \React\Http\Browser $browser;
88
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator;
99
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator;
10-
public function __construct()
10+
public function __construct(\React\Http\Browser $browser)
1111
{
12-
$this->browser = new \React\Http\Browser();
12+
$this->browser = $browser;
1313
$this->requestSchemaValidator = new \League\OpenAPIValidation\Schema\SchemaValidator(\League\OpenAPIValidation\Schema\SchemaValidator::VALIDATE_AS_REQUEST);
1414
$this->responseSchemaValidator = new \League\OpenAPIValidation\Schema\SchemaValidator(\League\OpenAPIValidation\Schema\SchemaValidator::VALIDATE_AS_RESPONSE);
1515
}

0 commit comments

Comments
 (0)