You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -196,16 +193,15 @@ final class PublicSuffix implements Countable, JsonSerializable
196
193
public function isKnown(): bool;
197
194
public function isICANN(): bool;
198
195
public function isPrivate(): bool;
199
-
public function getSection(): string;
200
196
public function toUnicode(): self;
201
197
public function toAscii(): self;
202
198
}
203
199
~~~
204
200
205
201
While `Rules::resolve` will only throws an exception if the section value is invalid, the `Rules::getPublicSuffix` is more restrictive and will additionnally throw if:
206
202
207
-
-If the Domain is invalid or seriously malformed
208
-
-If the PublicSuffix can not be normalized and converted using the domain encoding.
203
+
-The domain name is invalid or seriously malformed
204
+
-The public suffix can not be normalized and converted using the domain encoding.
209
205
210
206
**WARNING:**
211
207
@@ -241,8 +237,9 @@ To work as intended, the `Pdp\Manager` constructor requires:
241
237
242
238
- a [PSR-16](http://www.php-fig.org/psr/psr-16/) Cache object to store the rules locally.
243
239
244
-
- a `Pdp\HttpClient` object to retrieve the PSL.
245
-
the `Pdp\HttpClient` is a simple interface which exposes the `HttpClient::getContent` method. This method expects a string URL representation has its sole argument and returns the body from the given URL resource as a string.
240
+
- a `Pdp\HttpClient` object to retrieve the PSL.
241
+
242
+
The `Pdp\HttpClient` is a simple interface which exposes the `HttpClient::getContent` method. This method expects a string URL representation has its sole argument and returns the body from the given URL resource as a string.
246
243
If an error occurs while retrieving such body a `HttpClientException` exception is thrown.
0 commit comments