Skip to content

Commit 8a61c15

Browse files
Merge pull request #92 from pagarme/bugfix/compatibility-with-php8
🐛 adds php8 compatibility
2 parents 78608d4 + c7ad757 commit 8a61c15

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Kernel/ValueObjects/Id/RecipientId.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ class RecipientId extends AbstractValidString
99
protected function validateValue($value)
1010
{
1111
return (preg_match('/^re_\w{25}$/', $value)
12-
|| preg_match('/^rp_\w{16}$/', $value)) === 1;
12+
|| preg_match('/^rp_\w{16}$/', $value)) === true;
1313
}
1414
}

src/Marketplace/Aggregates/Recipient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ protected function createTransferSettings(): CreateTransferSettingsRequest
612612
* which is a value of any type other than a resource.
613613
* @since 5.4.0
614614
*/
615+
#[\ReturnTypeWillChange]
615616
public function jsonSerialize()
616617
{
617618
$obj = new \stdClass();

src/Marketplace/Aggregates/Split.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function convertSecondaryToSDKRequest()
180180

181181
return $splitRequest;
182182
}
183-
183+
#[\ReturnTypeWillChange]
184184
public function jsonSerialize()
185185
{
186186
$obj = new \stdClass();

0 commit comments

Comments
 (0)