From ed1b13900672d23600a59e6e0502db558ae15f5b Mon Sep 17 00:00:00 2001 From: "Juan E. Espulef" <99534798+JkqzDev@users.noreply.github.com> Date: Sun, 21 May 2023 16:32:39 -0300 Subject: [PATCH] Fix return type. This error occurred from using php8.1 --- src/CortexPE/DiscordWebhookAPI/Message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CortexPE/DiscordWebhookAPI/Message.php b/src/CortexPE/DiscordWebhookAPI/Message.php index f2c66f1..8f522e2 100644 --- a/src/CortexPE/DiscordWebhookAPI/Message.php +++ b/src/CortexPE/DiscordWebhookAPI/Message.php @@ -67,7 +67,7 @@ public function setTextToSpeech(bool $ttsEnabled):void{ $this->data["tts"] = $ttsEnabled; } - public function jsonSerialize(){ + public function jsonSerialize(): mixed{ return $this->data; } }