Skip to content

Commit

Permalink
MOL-1287: technical name in 6.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Jan 10, 2024
1 parent ea2e12c commit 8afecd9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Service/PaymentMethodService.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,11 @@ public function addPaymentMethods(array $paymentMethods, Context $context): void
'name' => $existingPaymentMethod->getName(),
];

# we do a string cast here, since getTechnicalName will be not nullable in the future
$technicalName = (string)$existingPaymentMethod->getTechnicalName();
if ($this->versionCompare->gte('6.5.7.0')) {
# we do a string cast here, since getTechnicalName will be not nullable in the future
$technicalName = (string)$existingPaymentMethod->getTechnicalName();

Check failure on line 189 in src/Service/PaymentMethodService.php

View workflow job for this annotation

GitHub Actions / PHPStan

Call to an undefined method Shopware\Core\Checkout\Payment\PaymentMethodEntity::getTechnicalName().
}

} else {
# let's create a full parameter list of everything
# that our new payment method needs to have
Expand Down

0 comments on commit 8afecd9

Please sign in to comment.