Skip to content

Commit fda6d97

Browse files
authored
Fix some types (#21)
1 parent d66924f commit fda6d97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/Codeception/Lib/Connector/Guzzle.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ protected function createResponse(Psr7Response $psr7Response): BrowserKitRespons
156156
return new BrowserKitResponse($body, $status, $headers);
157157
}
158158

159-
protected function getAbsoluteUri($uri)
159+
protected function getAbsoluteUri(string $uri): string
160160
{
161161
$baseUri = $this->client->getConfig('base_uri');
162162
if (strpos($uri, '://') === false && strpos($uri, '//') !== 0) {

Diff for: tests/unit/Codeception/Module/TestsForWeb.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ public function testClickLinkWithInnerSpan()
12121212
public function testSelectTwoSubmitsByText()
12131213
{
12141214
$this->module->amOnPage('/form/select_two_submits');
1215-
$this->module->selectOption('What kind of sandwich would you like?', 2);
1215+
$this->module->selectOption('What kind of sandwich would you like?', '2');
12161216
$this->module->click('Save');
12171217

12181218
$form = data::get('form');

0 commit comments

Comments
 (0)