[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

View File

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