Skip to content

Commit

Permalink
More precise typing on PHP 8.1 (#340)
Browse files Browse the repository at this point in the history
* Add #[\ReturnTypeWillChange] attribute for PHP 8.1 compatibility.

* Update tab to space.

* A different approach that works across all version.
  • Loading branch information
chrisdeeming committed Nov 22, 2021
1 parent 5c91952 commit 23a78b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/MessageSentReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,9 @@ public function getResponseContent(): ?string
}

/**
* @return array|mixed
* @return array
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
public function jsonSerialize(): array
{
return [
'success' => $this->isSuccess(),
Expand Down

0 comments on commit 23a78b8

Please sign in to comment.