File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ final class MessageNew implements ICompatibleEvent
33
33
private object $ geo ;
34
34
private object $ payload ;
35
35
private array $ fwd_messages ;
36
- private array $ reply_message ;
36
+ private object $ reply_message ;
37
37
private object $ action ;
38
38
private int $ admin_author_id ;
39
39
private int $ conversation_message_id ;
@@ -142,17 +142,17 @@ public function getPayload(): ?object
142
142
}
143
143
144
144
/**
145
- * @return array
145
+ * @return array|null
146
146
*/
147
- public function getFwdMessages (): array
147
+ public function getFwdMessages (): ? array
148
148
{
149
149
return $ this ->getField ("fwd_messages " );
150
150
}
151
151
152
152
/**
153
153
* @return array|null
154
154
*/
155
- public function getReplyMessage (): ?array
155
+ public function getReplyMessage (): ?object
156
156
{
157
157
return $ this ->getField ("reply_message " );
158
158
}
@@ -174,9 +174,9 @@ public function getAdminAuthorId(): ?int
174
174
}
175
175
176
176
/**
177
- * @return int
177
+ * @return int|null
178
178
*/
179
- public function getConversationMessageId (): int
179
+ public function getConversationMessageId (): ? int
180
180
{
181
181
return $ this ->getField ("conversation_message_id " );
182
182
}
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public function testGetId(): void
110
110
111
111
public function testGetReplyMessage (): void
112
112
{
113
- self ::assertIsArray ($ this ->m ->getReplyMessage ());
113
+ self ::assertIsObject ($ this ->m ->getReplyMessage ());
114
114
}
115
115
116
116
public function testGetConversationMessageId (): void
You can’t perform that action at this time.
0 commit comments