Skip to content

Commit cbcc0b6

Browse files
committed
Rename Link Header string representation method
1 parent 69ac036 commit cbcc0b6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/uri/7.0/rfc3986.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ You can also generate the Link `tag` and/or `header` depending on how you want y
163163
$uri = Uri::new('https://example.com/my/css/v1.3');
164164
echo $uri->toLinkTag(['rel' => 'stylesheet']);
165165
//display '<link href="https://example.com/my/css/v1.3" rel="stylesheet">
166-
echo $uri->toLinkFieldValue(['rel' => 'stylesheet']);
166+
echo $uri->toLinkHeaderValue(['rel' => 'stylesheet']);
167167
//display 'https://example.com/my/css/v1.3 ;rel=stylesheet'
168168
```
169169

interfaces/Contracts/UriRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function toLinkTag(iterable $attributes = []): string;
8585
*
8686
* @see https://www.rfc-editor.org/rfc/rfc7230.html#section-3.2.6
8787
*/
88-
public function toLinkFieldValue(iterable $parameters = []): string;
88+
public function toLinkHeaderValue(iterable $parameters = []): string;
8989

9090
/**
9191
* Returns the Unix filesystem path. The method returns null for any other scheme except the file scheme.

uri/Uri.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ public function toLinkTag(iterable $attributes = []): string
11591159
*
11601160
* @see https://www.rfc-editor.org/rfc/rfc7230.html#section-3.2.6
11611161
*/
1162-
public function toLinkFieldValue(iterable $parameters = []): string
1162+
public function toLinkHeaderValue(iterable $parameters = []): string
11631163
{
11641164
$value = '<'.$this->toString().'>';
11651165
if (!is_array($parameters)) {

0 commit comments

Comments
 (0)