Skip to content

Commit 23a78b8

Browse files
authored
More precise typing on PHP 8.1 (#340)
* Add #[\ReturnTypeWillChange] attribute for PHP 8.1 compatibility. * Update tab to space. * A different approach that works across all version.
1 parent 5c91952 commit 23a78b8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/MessageSentReport.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,9 @@ public function getResponseContent(): ?string
166166
}
167167

168168
/**
169-
* @return array|mixed
169+
* @return array
170170
*/
171-
#[\ReturnTypeWillChange]
172-
public function jsonSerialize()
171+
public function jsonSerialize(): array
173172
{
174173
return [
175174
'success' => $this->isSuccess(),

0 commit comments

Comments
 (0)