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 to10e52348a2
Commits -------29903e2c35
[WebLink] fix types on Link::withAttribute()
This commit is contained in:
commit
f0bb3caad1
|
@ -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)
|
||||
|
|
Reference in New Issue