Skip to content

Commit c28699d

Browse files
committed
MAGETWO-94041: [FT] Magento\Checkout\Test\TestCase\OnePageCheckoutDeclinedTest failed on Bamboo
1 parent f27a524 commit c28699d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Sales/Model/Service/PaymentFailuresService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* Service is responsible for handling failed payment transactions.
2323
*
2424
* It depends on Stores > Configuration > Sales > Checkout > Payment Failed Emails configuration.
25+
*
26+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2527
*/
2628
class PaymentFailuresService implements PaymentFailuresInterface
2729
{
@@ -78,7 +80,7 @@ public function __construct(
7880
$this->transportBuilder = $transportBuilder;
7981
$this->localeDate = $localeDate;
8082
$this->cartRepository = $cartRepository;
81-
$this->logger = $logger ?: ObjectManager::getInstance()->create(LoggerInterface::class);
83+
$this->logger = $logger ?: ObjectManager::getInstance()->get(LoggerInterface::class);
8284
}
8385

8486
/**

0 commit comments

Comments
 (0)