10000 [WebLink] fix types on Link::withAttribute() · symfony/symfony@29903e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 29903e2

Browse files
[WebLink] fix types on Link::withAttribute()
1 parent ffb0d2d commit 29903e2

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