File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Vault/Model/Method Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ class Vault implements VaultPaymentInterface
122
122
* @param PaymentTokenManagementInterface $tokenManagement
123
123
* @param OrderPaymentExtensionInterfaceFactory $paymentExtensionFactory
124
124
* @param string $code
125
- * @param Json $jsonSerializer
125
+ * @param Json|null $jsonSerializer
126
126
*
127
127
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
128
128
*/
@@ -137,7 +137,7 @@ public function __construct(
137
137
PaymentTokenManagementInterface $ tokenManagement ,
138
138
OrderPaymentExtensionInterfaceFactory $ paymentExtensionFactory ,
139
139
$ code ,
140
- Json $ jsonSerializer
140
+ Json $ jsonSerializer = null
141
141
) {
142
142
$ this ->config = $ config ;
143
143
$ this ->configFactory = $ configFactory ;
@@ -149,7 +149,7 @@ public function __construct(
149
149
$ this ->tokenManagement = $ tokenManagement ;
150
150
$ this ->paymentExtensionFactory = $ paymentExtensionFactory ;
151
151
$ this ->code = $ code ;
152
- $ this ->jsonSerializer = $ jsonSerializer ;
152
+ $ this ->jsonSerializer = $ jsonSerializer ?: $ this -> objectManager -> get (Json::class) ;
153
153
}
154
154
155
155
/**
You can’t perform that action at this time.
0 commit comments