[WebLink] fix types on Link::withAttribute()

This commit is contained in:
Nicolas Grekas 2021-06-21 15:22:37 +02:00
parent ffb0d2d424
commit 29903e2c35
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class Link implements EvolvableLinkInterface
private $rel = [];
/**
* @var string[]
* @var array<string, string|bool|string[]>
*/
private $attributes = [];
@ -132,6 +132,8 @@ class Link implements EvolvableLinkInterface
/**
* {@inheritdoc}
*
* @param string|bool|string[] $value
*
* @return static
*/
public function withAttribute($attribute, $value)