Skip to content

Commit

Permalink
fix:修复array_filter默认只传递值,回调报错的问题 (#2865)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viminice authored Dec 6, 2024
1 parent 3be0db1 commit 123758e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Pay/LegacySignature.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 123758e

Please sign in to comment.