We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Uri::withUserInfo()
1 parent 4032e01 commit 594c2c3Copy full SHA for 594c2c3
1 file changed
src/HttpMessage/Uri.php
@@ -312,7 +312,7 @@ public function withScheme($scheme)
312
public function withUserInfo($user, $password = null)
313
{
314
$this->assertString($user, 'user', true);
315
- $this->assertString($user, 'password', true, true);
+ $this->assertString($password, 'password', true, true);
316
$userInfo = (string) $user; // for versions without type hint in method signature
317
$password = (string) $password; // for versions without type hint in method signature
318
if ($userInfo !== '' && $password !== '') {
0 commit comments