Skip to content

Commit

Permalink
Merchant::buildQuery cast int values for rawurlencode(string)
Browse files Browse the repository at this point in the history
  • Loading branch information
trejjam committed Mar 20, 2019
1 parent fafece6 commit 94094f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Helper/Merchant.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ public function buildQuery(array $args = []): string
);

$str = [];
/** @var string|int $val */
foreach ($out as $key => $val) {
$str[] = rawurlencode($key) . '=' . rawurlencode($val);
$str[] = rawurlencode($key) . '=' . rawurlencode((string) $val);
}

return implode('&', $str);
Expand Down

0 comments on commit 94094f9

Please sign in to comment.