diff --git a/src/Psr7/Message.php b/src/Psr7/Message.php index 232814c7..4d110d5b 100644 --- a/src/Psr7/Message.php +++ b/src/Psr7/Message.php @@ -95,6 +95,7 @@ public function withHeader(string $name, $value):static{ * @inheritDoc */ public function withAddedHeader(string $name, $value):static{ + /** @var array $value */ $value = HeaderUtil::trimValues($this->checkValue($value)); $lcName = strtolower($name); @@ -102,6 +103,7 @@ public function withAddedHeader(string $name, $value):static{ $name = $this->headers[$lcName]['name']; } + /** @phan-suppress-next-line PhanTypeMismatchArgumentInternal */ $this->headers[$lcName] = ['name' => $name, 'value' => array_merge(($this->headers[$lcName]['value'] ?? []), $value)]; return $this;