Skip to content

Commit

Permalink
Fix fatal error when headers is null (#128)
Browse files Browse the repository at this point in the history
Headers defaults to "null" if empty, and "fixHeaders" can return null
too. Then we should allow "null" for the setHeaders function.
  • Loading branch information
kevin-ryser authored Jan 17, 2024
1 parent ac5354a commit 610d78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Postmark/Models/PostmarkMessageBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function getHeaders(): mixed
return $this->Headers;
}

public function setHeaders(array $Headers): PostmarkMessageBase
public function setHeaders(?array $Headers): PostmarkMessageBase
{
$this->Headers = $Headers;

Expand Down

0 comments on commit 610d78a

Please sign in to comment.