Skip to content

Commit cbdb025

Browse files
committed
Fix jsonSerialize() return type
1 parent c5f51e4 commit cbdb025

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/Messages/Outgoing/Actions/Button.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ public function toArray()
126126
/**
127127
* @return array
128128
*/
129+
#[\ReturnTypeWillChange]
129130
public function jsonSerialize()
130131
{
131132
return $this->toArray();

src/Messages/Outgoing/Actions/Select.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public function toArray()
9292
/**
9393
* @return array
9494
*/
95+
#[\ReturnTypeWillChange]
9596
public function jsonSerialize()
9697
{
9798
return $this->toArray();

src/Messages/Outgoing/Question.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ public function toArray()
113113
/**
114114
* @return array
115115
*/
116+
#[\ReturnTypeWillChange]
116117
public function jsonSerialize()
117118
{
118119
return $this->toArray();

0 commit comments

Comments
 (0)