diff --git a/http/en/urls.texy b/http/en/urls.texy index 608fa0064f..6c80b9485a 100644 --- a/http/en/urls.texy +++ b/http/en/urls.texy @@ -151,7 +151,7 @@ $newUrl = $url ->withPassword('') ->withPath('/en/'); -echo $newUrl; // 'http://john:xyz%2A12@nette.org:8080/en/?name=param#footer' +echo $newUrl; // 'http://nette.org:8080/en/?name=param#footer' ``` The `UrlImmutable` class implements the `JsonSerializable` interface and has a `__toString()` method, so the object can be printed or used in data passed to `json_encode()`.