updated-packages
This commit is contained in:
@@ -28,14 +28,12 @@ class TE implements HeaderInterface
|
||||
}
|
||||
|
||||
// @todo implementation details
|
||||
$header = new static($value);
|
||||
|
||||
return $header;
|
||||
return new static($value);
|
||||
}
|
||||
|
||||
public function __construct($value = null)
|
||||
{
|
||||
if ($value) {
|
||||
if ($value !== null) {
|
||||
HeaderValue::assertValid($value);
|
||||
$this->value = $value;
|
||||
}
|
||||
@@ -48,7 +46,7 @@ class TE implements HeaderInterface
|
||||
|
||||
public function getFieldValue()
|
||||
{
|
||||
return $this->value;
|
||||
return (string) $this->value;
|
||||
}
|
||||
|
||||
public function toString()
|
||||
|
Reference in New Issue
Block a user