Skip to content

Commit e085e8f

Browse files
author
Dmytro Vyshnevskyi
committed
fix for psalm
1 parent 80b0225 commit e085e8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Core/src/Signer/SignerV4.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,9 @@ private function buildCanonicalQuery(Request $request): string
321321
return '';
322322
}
323323

324-
uksort($query, static fn ($a, $b) => strcmp(rawurlencode($a), rawurlencode($b)));
324+
uksort($query, static function (string $a, string $b): int {
325+
return strcmp(rawurlencode($a), rawurlencode($b));
326+
});
325327
$encodedQuery = [];
326328
foreach ($query as $key => $values) {
327329
if (!\is_array($values)) {

0 commit comments

Comments
 (0)