From 1082094e37288f7485343148d6f3149c726aab0d Mon Sep 17 00:00:00 2001 From: dinamiko Date: Thu, 21 Apr 2022 17:02:19 +0200 Subject: [PATCH] Fix psalm --- .../src/Gateway/PayUponInvoice/PaymentSourceFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PaymentSourceFactory.php b/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PaymentSourceFactory.php index 5fd42e99d..d4dc82562 100644 --- a/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PaymentSourceFactory.php +++ b/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PaymentSourceFactory.php @@ -43,7 +43,7 @@ class PaymentSourceFactory { $address['first_name'] ?? '', $address['last_name'] ?? '', $address['email'] ?? '', - (string) $birth_date, + $birth_date, preg_replace( '/[^0-9]/', '', $address['phone'] ) ?? '', $phone_country_code, $address['address_1'] ?? '',