From 123758e44beb36996496d193d0f2a2f91c06fc64 Mon Sep 17 00:00:00 2001 From: Vimin Date: Fri, 6 Dec 2024 19:52:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8Darray=5Ffilter=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=8F=AA=E4=BC=A0=E9=80=92=E5=80=BC=EF=BC=8C=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98=20(#2865?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Pay/LegacySignature.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Pay/LegacySignature.php b/src/Pay/LegacySignature.php index 0a82824e5..4ae63b169 100644 --- a/src/Pay/LegacySignature.php +++ b/src/Pay/LegacySignature.php @@ -39,7 +39,8 @@ public function sign(array $params): array ], $params ), - static fn ($value, $key) => !($key === 'sign' || $value === '' || is_null($value)) + static fn ($value, $key) => !($key === 'sign' || $value === '' || is_null($value)), + ARRAY_FILTER_USE_BOTH ); ksort($attributes);