Skip to content

Commit 13a3884

Browse files
Fix serialize to not call self
1 parent 87ea814 commit 13a3884

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

CRM/Core/Payment/OmnipayMultiProcessor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class CRM_Core_Payment_OmnipayMultiProcessor extends CRM_Core_Payment_PaymentExt
8282
* @var \Civi\Payment\PropertyBag
8383
*/
8484
protected $propertyBag;
85-
85+
8686
/**
8787
* For PHP8.1
8888
* https://www.php.net/manual/en/language.oop5.magic.php#object.serialize
@@ -93,7 +93,7 @@ public function __serialize(): array {
9393
$this->cleanupObjectForSerialization($data, TRUE);
9494
return (array) $data;
9595
}
96-
96+
9797
/**
9898
* Serialize, first removing gateway
9999
*
@@ -102,7 +102,7 @@ public function __serialize(): array {
102102
* @return string
103103
*/
104104
public function serialize(): string {
105-
return serialize($this->serialize());
105+
return serialize($this->__serialize());
106106
}
107107

108108
/**
@@ -120,7 +120,7 @@ public function unserialize($data) {
120120
/**
121121
* For PHP8.1
122122
* https://www.php.net/manual/en/language.oop5.magic.php#object.unserialize
123-
*
123+
*
124124
* @param array $data
125125
*/
126126
public function __unserialize(array $data): void {

0 commit comments

Comments
 (0)