diff --git a/docs/uri/7.0/rfc3986.md b/docs/uri/7.0/rfc3986.md index bd4e1ce5..74e4d7a2 100644 --- a/docs/uri/7.0/rfc3986.md +++ b/docs/uri/7.0/rfc3986.md @@ -163,7 +163,7 @@ You can also generate the Link `tag` and/or `header` depending on how you want y $uri = Uri::new('https://example.com/my/css/v1.3'); echo $uri->toLinkTag(['rel' => 'stylesheet']); //display ' -echo $uri->toLinkFieldValue(['rel' => 'stylesheet']); +echo $uri->toLinkHeaderValue(['rel' => 'stylesheet']); //display 'https://example.com/my/css/v1.3 ;rel=stylesheet' ``` diff --git a/interfaces/Contracts/UriRenderer.php b/interfaces/Contracts/UriRenderer.php index b3ebf461..ddb746c6 100644 --- a/interfaces/Contracts/UriRenderer.php +++ b/interfaces/Contracts/UriRenderer.php @@ -85,7 +85,7 @@ public function toLinkTag(iterable $attributes = []): string; * * @see https://www.rfc-editor.org/rfc/rfc7230.html#section-3.2.6 */ - public function toLinkFieldValue(iterable $parameters = []): string; + public function toLinkHeaderValue(iterable $parameters = []): string; /** * Returns the Unix filesystem path. The method returns null for any other scheme except the file scheme. diff --git a/uri/Uri.php b/uri/Uri.php index 0695e96a..a6a85926 100644 --- a/uri/Uri.php +++ b/uri/Uri.php @@ -1159,7 +1159,7 @@ public function toLinkTag(iterable $attributes = []): string * * @see https://www.rfc-editor.org/rfc/rfc7230.html#section-3.2.6 */ - public function toLinkFieldValue(iterable $parameters = []): string + public function toLinkHeaderValue(iterable $parameters = []): string { $value = '<'.$this->toString().'>'; if (!is_array($parameters)) {