8000 minor #41763 [WebLink] fix types on Link::withAttribute() (nicolas-gr… · symfony/symfony@f0bb3ca · GitHub
[go: up one dir, main page]

Skip to content

Commit f0bb3ca

Browse files
8000
minor #41763 [WebLink] fix types on Link::withAttribute() (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [WebLink] fix types on Link::withAttribute() | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix #40126 | License | MIT | Doc PR | - Related to php-fig/link-util@10e5234 Commits ------- 29903e2 [WebLink] fix types on Link::withAttribute()
2 parents 6a4dcde + 29903e2 commit f0bb3ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/WebLink/Link.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Link implements EvolvableLinkInterface
4646
private $rel = [];
4747

4848
/**
49-
* @var string[]
49+
* @var array<string, string|bool|string[]>
5050
*/
5151
private $attributes = [];
5252

@@ -132,6 +132,8 @@ public function withoutRel($rel)
132132
/**
133133
* {@inheritdoc}
134134
*
135+
* @param string|bool|string[] $value
136+
*
135137
* @return static
136138
*/
137139
public function withAttribute($attribute, $value)

0 commit comments

Comments
 (0)
0