Skip to content

Commit db56b5e

Browse files
Use typed properties in tests as much as possible
1 parent 7f6afa1 commit db56b5e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/TestClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
class TestClient extends AbstractBrowser
1818
{
19-
protected $nextResponse;
20-
protected $nextScript;
19+
protected ?Response $nextResponse = null;
20+
protected string $nextScript;
2121

2222
public function setNextResponse(Response $response)
2323
{

Tests/TestHttpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
class TestHttpClient extends HttpBrowser
2222
{
23-
protected $nextResponse;
24-
protected $nextScript;
23+
protected ?Response $nextResponse = null;
24+
protected string $nextScript;
2525

2626
public function __construct(array $server = [], History $history = null, CookieJar $cookieJar = null)
2727
{

0 commit comments

Comments
 (0)