Skip to content

Commit cb6164c

Browse files
authored
Add types (#5)
1 parent 73dbb65 commit cb6164c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Codeception/Lib/Connector/Universal.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ final class Universal extends Client
88
{
99
use Shared\PhpSuperGlobalsConverter;
1010

11-
protected $mockedResponse;
12-
protected $index;
11+
protected ?object $mockedResponse = null;
12+
protected ?string $index = null;
1313

14-
public function setIndex($index)
14+
public function setIndex(string $index): void
1515
{
1616
$this->index = $index;
1717
}
1818

19-
public function mockResponse($response)
19+
public function mockResponse(object $response): void
2020
{
2121
$this->mockedResponse = $response;
2222
}

src/Codeception/Module/UniversalFramework.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class UniversalFramework extends Framework
99
{
1010

11-
public function _initialize()
11+
public function _initialize(): void
1212
{
1313
if (isset($this->config['index'])) {
1414
$index = $this->config['index'];
@@ -19,7 +19,7 @@ public function _initialize()
1919
$this->client->setIndex($index);
2020
}
2121

22-
public function useUniversalFramework()
22+
public function useUniversalFramework(): void
2323
{
2424

2525
}

0 commit comments

Comments
 (0)