From eec344f35d5cbca47ca0d9e69db39884584fe729 Mon Sep 17 00:00:00 2001
From: Pedro Silva
Date: Mon, 25 Mar 2024 16:08:49 +0000
Subject: [PATCH] Fix lint
---
modules/ppcp-button/src/Assets/SmartButton.php | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/modules/ppcp-button/src/Assets/SmartButton.php b/modules/ppcp-button/src/Assets/SmartButton.php
index e0e40a798..c33bdcf47 100644
--- a/modules/ppcp-button/src/Assets/SmartButton.php
+++ b/modules/ppcp-button/src/Assets/SmartButton.php
@@ -1339,11 +1339,17 @@ document.querySelector("#payment").before(document.querySelector("#ppcp-messages
$disable_funding[] = 'paylater';
}
- // Make sure paypal is not sent in disable funding.
$disable_funding = array_filter(
$disable_funding,
- function( $value ) {
- return $value !== 'paypal';
+ /**
+ * Make sure paypal is not sent in disable funding.
+ *
+ * @param string $funding_source The funding_source.
+ *
+ * @psalm-suppress MissingClosureParamType
+ */
+ function( $funding_source ) {
+ return $funding_source !== 'paypal';
}
);