@@ -185,7 +185,7 @@ public function getFragment();
185185 * An empty scheme is equivalent to removing the scheme.
186186 *
187187 * @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.
189189 * @throws \InvalidArgumentException for invalid or unsupported schemes.
190190 */
191191 public function withScheme ($ scheme );
@@ -202,7 +202,7 @@ public function withScheme($scheme);
202202 *
203203 * @param string $user The user name to use for authority.
204204 * @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.
206206 */
207207 public function withUserInfo ($ user , $ password = null );
208208
@@ -215,7 +215,7 @@ public function withUserInfo($user, $password = null);
215215 * An empty host value is equivalent to removing the host.
216216 *
217217 * @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.
219219 * @throws \InvalidArgumentException for invalid hostnames.
220220 */
221221 public function withHost ($ host );
@@ -234,7 +234,7 @@ public function withHost($host);
234234 *
235235 * @param null|int $port The port to use with the new instance; a null value
236236 * removes the port information.
237- * @return self A new instance with the specified port.
237+ * @return static A new instance with the specified port.
238238 * @throws \InvalidArgumentException for invalid ports.
239239 */
240240 public function withPort ($ port );
@@ -258,7 +258,7 @@ public function withPort($port);
258258 * Implementations ensure the correct encoding as outlined in getPath().
259259 *
260260 * @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.
262262 * @throws \InvalidArgumentException for invalid paths.
263263 */
264264 public function withPath ($ path );
@@ -275,7 +275,7 @@ public function withPath($path);
275275 * An empty query string value is equivalent to removing the query string.
276276 *
277277 * @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.
279279 * @throws \InvalidArgumentException for invalid query strings.
280280 */
281281 public function withQuery ($ query );
@@ -292,7 +292,7 @@ public function withQuery($query);
292292 * An empty fragment value is equivalent to removing the fragment.
293293 *
294294 * @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.
296296 */
297297 public function withFragment ($ fragment );
298298
0 commit comments