@@ -197,7 +197,7 @@ public function withValue(mixed $value): static
197
197
$ value instanceof ByteSequence && $ this ->value instanceof ByteSequence && $ value ->encoded () === $ this ->value ->encoded (),
198
198
$ value instanceof Token && $ this ->value instanceof Token && $ value ->value === $ this ->value ->value ,
199
199
$ value instanceof DateTimeInterface && $ this ->value instanceof DateTimeInterface && $ value == $ this ->value ,
200
- $ value instanceof Stringable && $ this -> type === Type::String && $ value ->__toString () === $ this ->value ,
200
+ $ value instanceof Stringable && $ value ->__toString () === $ this ->value ,
201
201
$ value === $ this ->value => $ this ,
202
202
default => self ::from ($ value , $ this ->parameters ),
203
203
};
@@ -208,12 +208,12 @@ public function parameters(): Parameters
208
208
return clone $ this ->parameters ;
209
209
}
210
210
211
- public function prependParameter (string $ key , Value |Token |ByteSequence |DateTimeInterface |Stringable |string |int |float |bool $ member ): static
211
+ public function prependParameter (string $ key , StructuredField |Token |ByteSequence |DateTimeInterface |Stringable |string |int |float |bool $ member ): static
212
212
{
213
213
return $ this ->withParameters ($ this ->parameters ()->prepend ($ key , $ member ));
214
214
}
215
215
216
- public function appendParameter (string $ key , Value |Token |ByteSequence |DateTimeInterface |Stringable |string |int |float |bool $ member ): static
216
+ public function appendParameter (string $ key , StructuredField |Token |ByteSequence |DateTimeInterface |Stringable |string |int |float |bool $ member ): static
217
217
{
218
218
return $ this ->withParameters ($ this ->parameters ()->append ($ key , $ member ));
219
219
}
0 commit comments