File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ public function parse(Stringable|string $httpValue): StructuredField
33
33
*/
34
34
public function build (iterable $ data ): string
35
35
{
36
- return match ($ this ) {
37
- self ::Dictionary => Dictionary::fromPairs ($ data )-> toHttpValue () ,
38
- self ::Parameters => Parameters::fromPairs ($ data )-> toHttpValue () ,
39
- self ::List => OuterList::fromPairs ($ data )-> toHttpValue () ,
40
- self ::InnerList => InnerList::fromPair ([...$ data ])-> toHttpValue () , /* @phpstan-ignore-line */
41
- self ::Item => Item::fromPair ([...$ data ])-> toHttpValue () , /* @phpstan-ignore-line */
42
- };
36
+ return ( match ($ this ) {
37
+ self ::Dictionary => Dictionary::fromPairs ($ data ),
38
+ self ::Parameters => Parameters::fromPairs ($ data ),
39
+ self ::List => OuterList::fromPairs ($ data ),
40
+ self ::InnerList => InnerList::fromPair ([...$ data ]), /* @phpstan-ignore-line */
41
+ self ::Item => Item::fromPair ([...$ data ]), /* @phpstan-ignore-line */
42
+ })-> toHttpValue () ;
43
43
}
44
44
}
You can’t perform that action at this time.
0 commit comments