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 10e52348a2

Commits
-------

29903e2c35 [WebLink] fix types on Link::withAttribute()
This commit is contained in:
Nicolas Grekas 2021-06-22 09:35:25 +02:00
commit f0bb3caad1
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)