We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0ec48e4 + 8394c48 commit 1580036Copy full SHA for 1580036
3 files changed
.github/workflows/ci.yml
@@ -14,6 +14,7 @@ jobs:
14
- 8.2
15
- 8.3
16
- 8.4
17
+ - 8.5
18
steps:
19
- name: Checkout
20
uses: actions/checkout@v4
src/SimpleJWT/Keys/KeySet.php
@@ -324,7 +324,7 @@ protected function find(array $criteria): ?array {
324
break;
325
}
326
327
- if ($found) $results[$kid] = $key_data;
+ if ($found) $results[$kid ?? ''] = $key_data;
328
329
330
// 3. If zero or one key is found after allowing for mandatory and
src/SimpleJWT/Util/ASN1/DER.php
@@ -286,7 +286,7 @@ static function encodeInteger($int) {
286
$data = gmp_export($int);
287
288
if (strlen($data) == 0) return "\0";
289
- if (ord($data) > 127) return "\0" . $data;
+ if (ord($data[0]) > 127) return "\0" . $data;
290
return $data;
291
292
0 commit comments