Skip to content

Commit 737068c

Browse files
authored
Fix deprecated on php 8.1 (#44)
1 parent c8b1ce1 commit 737068c

37 files changed

Lines changed: 37 additions & 0 deletions

src/CMText/Message.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ public function WithPayment(PaymentMessage $paymentMessage)
266266
/**
267267
* @return object
268268
*/
269+
#[\ReturnTypeWillChange]
269270
public function jsonSerialize()
270271
{
271272
$return = [

src/CMText/MessageBody.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public function WithType(string $type): MessageBody
8787
/**
8888
* @return object
8989
*/
90+
#[\ReturnTypeWillChange]
9091
public function jsonSerialize()
9192
{
9293
return (object)[

src/CMText/RichContent/Common/Contact.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ public function addUrl(ContactUrl $ContactUrl)
169169
/**
170170
* @inheritDoc
171171
*/
172+
#[\ReturnTypeWillChange]
172173
public function jsonSerialize()
173174
{
174175
// none of the properties are required, so we filter the empty ones.

src/CMText/RichContent/Common/ContactAddress.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public function __construct(
9595
/**
9696
* @inheritDoc
9797
*/
98+
#[\ReturnTypeWillChange]
9899
public function jsonSerialize()
99100
{
100101
// none of these properties are required, so we filter the empty ones.

src/CMText/RichContent/Common/ContactBirthday.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function __construct(\DateTimeInterface $Birthday)
2525
/**
2626
* @inheritDoc
2727
*/
28+
#[\ReturnTypeWillChange]
2829
public function jsonSerialize()
2930
{
3031
return $this->date->format('Y-m-d');

src/CMText/RichContent/Common/ContactEmail.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function __construct(string $Email = '', string $Type = '')
5050
/**
5151
* @inheritDoc
5252
*/
53+
#[\ReturnTypeWillChange]
5354
public function jsonSerialize()
5455
{
5556
// none of these properties are required, so we filter the empty ones.

src/CMText/RichContent/Common/ContactName.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public function __construct(
6767
/**
6868
* @inheritDoc
6969
*/
70+
#[\ReturnTypeWillChange]
7071
public function jsonSerialize()
7172
{
7273
$required = [

src/CMText/RichContent/Common/ContactOrganization.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function __construct(
4343
/**
4444
* @inheritDoc
4545
*/
46+
#[\ReturnTypeWillChange]
4647
public function jsonSerialize()
4748
{
4849
// none of the properties are required, so we filter the empty ones.

src/CMText/RichContent/Common/ContactPhonenumber.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function __construct(string $Phone = '', string $PhonenumberType = '')
4949
/**
5050
* @inheritDoc
5151
*/
52+
#[\ReturnTypeWillChange]
5253
public function jsonSerialize()
5354
{
5455
// none of the properties are required, so we filter the empty ones.

src/CMText/RichContent/Common/ContactUrl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function __construct(string $Url, string $ContactUrlType = '')
3939
/**
4040
* @inheritDoc
4141
*/
42+
#[\ReturnTypeWillChange]
4243
public function jsonSerialize()
4344
{
4445
// none of the properties are required, so we filter the empty ones.

0 commit comments

Comments
 (0)