diff --git a/src/UriInterface.php b/src/UriInterface.php index bdf68c7..9a67725 100644 --- a/src/UriInterface.php +++ b/src/UriInterface.php @@ -205,6 +205,10 @@ public function withPort($port); * The path MUST be prefixed with "/"; if not, the implementation MAY * provide the prefix itself. * + * The implementation MUST percent-encode reserved characters as + * specified in RFC 3986, Section 2, but MUST NOT double-encode any + * characters. + * * An empty path value is equivalent to removing the path. * * @param string $path The path to use with the new instance. @@ -223,6 +227,10 @@ public function withPath($path); * Additionally, the query string SHOULD be parseable by parse_str() in * order to be valid. * + * The implementation MUST percent-encode reserved characters as + * specified in RFC 3986, Section 2, but MUST NOT double-encode any + * characters. + * * An empty query string value is equivalent to removing the query string. * * @param string $query The query string to use with the new instance.