Skip to content

Commit d41776c

Browse files
authored
Fixed PHP Deprecated: Return type of NotificationChannels\Telegram\TelegramMessage::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed (#141)
1 parent 63f6727 commit d41776c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/HasSharedLogic.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ public function toArray(): array
141141
/**
142142
* Convert the object into something JSON serializable.
143143
*
144-
* @return mixed
144+
* @return array
145145
*/
146-
public function jsonSerialize()
146+
public function jsonSerialize(): array
147147
{
148148
return $this->toArray();
149149
}

0 commit comments

Comments
 (0)