Skip to content

Commit 96e8f69

Browse files
committed
Improve Interfaces documentation
1 parent af4a392 commit 96e8f69

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/interfaces/7.0/uri-parser-builder.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,10 @@ The `build` method provides similar functionality to the `http_build_url()` func
166166
<p class="message-notice">The class also exposes a <code>UriString::buildAuthority</code> method you can use to build an authority from its hash representation.</p>
167167
<p class="message-notice">The class also exposes a <code>UriString::buildUri</code> method which strictly follow the specification.</p>
168168

169-
## Other RFC3986 features
169+
## Removing dot segments
170170

171171
<p class="message-notice">Available since version <code>7.6</code></p>
172172

173-
### Removing dot segments
174-
175173
To remove dot segments as per [RFC3986](https://tools.ietf.org/html/rfc3986#section-6), you need to explicitly call
176174
the `UriString::removeDotSegments` method. The method takes a single argument the path string and returns
177175
a new string which represents the path without dot segments.
@@ -185,7 +183,7 @@ $path = UriString::removeDotSegments('path/to/./the/../the/sky%7bfoo%7d');
185183
echo $path; //displays 'path/to/the/sky%7Bfoo%7D'
186184
~~~
187185

188-
## Validations
186+
## Component and String Validation
189187

190188
The class exposes static methods to validate that a string:
191189

@@ -201,6 +199,6 @@ use League\Uri\Uri;use League\Uri\UriString;
201199

202200
UriString::isValidScheme('foo '); //returns false because of the leading space
203201
UriString::isValidHost('333.333.333.1.333'); //returns true
204-
UriString::containsValidRfc3986Characters('http://bébé.be'); //returns false
202+
UriString::containsValidRfc3986Characters('http://bébé.be'); //returns false non-ascii character are not allowed
205203
UriString::containsValidRfc3987Characters('http://bébé.be'); //returns true
206204
~~~

0 commit comments

Comments
 (0)