From 23a78b8585bdcecaa323f1dd1acdc548e28892fe Mon Sep 17 00:00:00 2001 From: Chris Deeming Date: Mon, 22 Nov 2021 17:36:01 +0000 Subject: [PATCH] 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. --- src/MessageSentReport.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/MessageSentReport.php b/src/MessageSentReport.php index 9770df9..ef1e0aa 100644 --- a/src/MessageSentReport.php +++ b/src/MessageSentReport.php @@ -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(),