diff --git a/phpstan.neon b/phpstan.neon index 3b1859bd..4446fc51 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -4,4 +4,6 @@ parameters: - ./src checkMissingIterableValueType: false treatPhpDocTypesAsCertain: false - checkGenericClassInNonGenericObjectType: false \ No newline at end of file + checkGenericClassInNonGenericObjectType: false + ignoreErrors: + - '#Call to an undefined method [a-zA-Z0-9\\_]+::setServiceVersion\(\)#' \ No newline at end of file diff --git a/src/Handlers/AsyncPaymentHandler.php b/src/Handlers/AsyncPaymentHandler.php index 9d7b7119..0c6aeae7 100644 --- a/src/Handlers/AsyncPaymentHandler.php +++ b/src/Handlers/AsyncPaymentHandler.php @@ -551,7 +551,8 @@ private function setFeeOnOrder( * * @return boolean */ - protected function isAfterpayOld(string $salesChannelContextId) { + protected function isAfterpayOld(string $salesChannelContextId) + { return $this->getSetting('afterpayEnabledold', $salesChannelContextId) === true; } } diff --git a/src/Resources/app/administration/src/components/buckaroo-payment-list/index.js b/src/Resources/app/administration/src/components/buckaroo-payment-list/index.js index 201cef42..f6ee7d6b 100644 --- a/src/Resources/app/administration/src/components/buckaroo-payment-list/index.js +++ b/src/Resources/app/administration/src/components/buckaroo-payment-list/index.js @@ -146,7 +146,7 @@ Component.register("buckaroo-payment-list", { methods: { getPaymentTitle(code) { const card = this.configSettings.filter((card) => card.name === code)?.pop(); - if (card.title) { + if (card && card.title) { return this.getInlineSnippet(card.title); } return code