From e2543fa1810e5d18e0fa7b54a87fde08a098476f Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Wed, 11 Oct 2023 11:48:38 +0200 Subject: [PATCH] It is recommended not to use reserved keyword "default". --- src/Methods.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Methods.php b/src/Methods.php index 4dd0454..f8b689e 100644 --- a/src/Methods.php +++ b/src/Methods.php @@ -188,10 +188,10 @@ class Methods { * Transform WordPress payment method to MultiSafepay method. * * @param string|null $payment_method Payment method. - * @param string|null $default Default payment method. + * @param string|null $fallback Default payment method. * @return string|null */ - public static function transform( $payment_method, $default = null ) { + public static function transform( $payment_method, $fallback = null ) { if ( ! \is_scalar( $payment_method ) ) { return null; } @@ -200,7 +200,7 @@ public static function transform( $payment_method, $default = null ) { return self::$map[ $payment_method ]; } - return $default; + return $fallback; } /**