Skip to content

Commit cdf43f3

Browse files
committed
When an array is supplied, should go straight to the objectmanager create function.
1 parent e6dea5b commit cdf43f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Vault/Model/PaymentTokenFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function create($type = null)
4646
if(is_array($type)) {
4747
return $this->objectManager->create(
4848
PaymentTokenInterface::class,
49-
['data' => $type]
49+
$type
5050
);
5151
}
5252

0 commit comments

Comments
 (0)