Skip to content

Commit ed5535a

Browse files
authored
Merge pull request #289 from berrnd/php81
Fixed PHP 8.1 deprecation warning
2 parents 302a00a + 505003f commit ed5535a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Translations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public function getPluralForms()
282282
public function setHeader($name, $value)
283283
{
284284
$name = trim($name);
285-
$this->headers[$name] = trim($value);
285+
$this->headers[$name] = trim($value ?? '');
286286

287287
return $this;
288288
}

0 commit comments

Comments
 (0)