Skip to content

Commit 594c2c3

Browse files
committed
Uri::withUserInfo() - fix password assertion
1 parent 4032e01 commit 594c2c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/HttpMessage/Uri.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public function withScheme($scheme)
312312
public function withUserInfo($user, $password = null)
313313
{
314314
$this->assertString($user, 'user', true);
315-
$this->assertString($user, 'password', true, true);
315+
$this->assertString($password, 'password', true, true);
316316
$userInfo = (string) $user; // for versions without type hint in method signature
317317
$password = (string) $password; // for versions without type hint in method signature
318318
if ($userInfo !== '' && $password !== '') {

0 commit comments

Comments
 (0)