@@ -185,7 +185,7 @@ public function getFragment();
185
185
* An empty scheme is equivalent to removing the scheme.
186
186
*
187
187
* @param string $scheme The scheme to use with the new instance.
188
- * @return self A new instance with the specified scheme.
188
+ * @return static A new instance with the specified scheme.
189
189
* @throws \InvalidArgumentException for invalid or unsupported schemes.
190
190
*/
191
191
public function withScheme ($ scheme );
@@ -202,7 +202,7 @@ public function withScheme($scheme);
202
202
*
203
203
* @param string $user The user name to use for authority.
204
204
* @param null|string $password The password associated with $user.
205
- * @return self A new instance with the specified user information.
205
+ * @return static A new instance with the specified user information.
206
206
*/
207
207
public function withUserInfo ($ user , $ password = null );
208
208
@@ -215,7 +215,7 @@ public function withUserInfo($user, $password = null);
215
215
* An empty host value is equivalent to removing the host.
216
216
*
217
217
* @param string $host The hostname to use with the new instance.
218
- * @return self A new instance with the specified host.
218
+ * @return static A new instance with the specified host.
219
219
* @throws \InvalidArgumentException for invalid hostnames.
220
220
*/
221
221
public function withHost ($ host );
@@ -234,7 +234,7 @@ public function withHost($host);
234
234
*
235
235
* @param null|int $port The port to use with the new instance; a null value
236
236
* removes the port information.
237
- * @return self A new instance with the specified port.
237
+ * @return static A new instance with the specified port.
238
238
* @throws \InvalidArgumentException for invalid ports.
239
239
*/
240
240
public function withPort ($ port );
@@ -258,7 +258,7 @@ public function withPort($port);
258
258
* Implementations ensure the correct encoding as outlined in getPath().
259
259
*
260
260
* @param string $path The path to use with the new instance.
261
- * @return self A new instance with the specified path.
261
+ * @return static A new instance with the specified path.
262
262
* @throws \InvalidArgumentException for invalid paths.
263
263
*/
264
264
public function withPath ($ path );
@@ -275,7 +275,7 @@ public function withPath($path);
275
275
* An empty query string value is equivalent to removing the query string.
276
276
*
277
277
* @param string $query The query string to use with the new instance.
278
- * @return self A new instance with the specified query string.
278
+ * @return static A new instance with the specified query string.
279
279
* @throws \InvalidArgumentException for invalid query strings.
280
280
*/
281
281
public function withQuery ($ query );
@@ -292,7 +292,7 @@ public function withQuery($query);
292
292
* An empty fragment value is equivalent to removing the fragment.
293
293
*
294
294
* @param string $fragment The fragment to use with the new instance.
295
- * @return self A new instance with the specified fragment.
295
+ * @return static A new instance with the specified fragment.
296
296
*/
297
297
public function withFragment ($ fragment );
298
298
0 commit comments