Skip to content

Commit 94094f9

Browse files
committed
Merchant::buildQuery cast int values for rawurlencode(string)
1 parent fafece6 commit 94094f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Helper/Merchant.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ public function buildQuery(array $args = []): string
5353
);
5454

5555
$str = [];
56+
/** @var string|int $val */
5657
foreach ($out as $key => $val) {
57-
$str[] = rawurlencode($key) . '=' . rawurlencode($val);
58+
$str[] = rawurlencode($key) . '=' . rawurlencode((string) $val);
5859
}
5960

6061
return implode('&', $str);

0 commit comments

Comments
 (0)