@@ -91,6 +91,7 @@ public function __construct(CacheInterface $cache, HttpClient $http, $ttl = null
91
91
* @param int $unicodeIDNAOption
92
92
*
93
93
* @throws SimpleCacheException
94
+ * @throws CouldNotLoadRules
94
95
*
95
96
* @return Rules
96
97
*/
@@ -125,6 +126,9 @@ public function getRules(
125
126
* @param string $url the Public Suffix List URL
126
127
* @param null|mixed $ttl the cache TTL
127
128
*
129
+ * @throws SimpleCacheException
130
+ * @throws HttpClientException
131
+ *
128
132
* @return bool
129
133
*/
130
134
public function refreshRules (string $ url = self ::PSL_URL , $ ttl = null ): bool
@@ -146,6 +150,7 @@ public function refreshRules(string $url = self::PSL_URL, $ttl = null): bool
146
150
* @param int $unicodeIDNAOption
147
151
*
148
152
* @throws SimpleCacheException
153
+ * @throws CouldNotLoadTLDs
149
154
*
150
155
* @return TopLevelDomains
151
156
*/
@@ -188,21 +193,16 @@ public function getTLDs(
188
193
* If a local cache already exists, it will be overwritten.
189
194
* Returns true if the refresh was successful.
190
195
*
191
- * @param string $url the IANA Root Zone Database URL
192
- * @param null|mixed $ttl the cache TTL
193
- * @param int $asciiIDNAOption
194
- * @param int $unicodeIDNAOption
196
+ * @param string $url the IANA Root Zone Database URL
197
+ * @param null|mixed $ttl the cache TTL
195
198
*
196
199
* @throws SimpleCacheException
200
+ * @throws HttpClientException
197
201
*
198
202
* @return bool
199
203
*/
200
- public function refreshTLDs (
201
- string $ url = self ::RZD_URL ,
202
- $ ttl = null ,
203
- int $ asciiIDNAOption = IDNA_DEFAULT ,
204
- int $ unicodeIDNAOption = IDNA_DEFAULT
205
- ): bool {
204
+ public function refreshTLDs (string $ url = self ::RZD_URL , $ ttl = null ): bool
205
+ {
206
206
static $ converter ;
207
207
208
208
$ converter = $ converter ?? new TLDConverter ();
0 commit comments