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

src/Codeception/Lib/Connector/Guzzle.php

Lines changed: 1 addition & 1 deletion
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) {

tests/unit/Codeception/Module/TestsForWeb.php

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy