Skip to content

Commit 2e07d8a

Browse files
authored
fix: string interpolation format for php 8.2 (#446)
1 parent 60b52b7 commit 2e07d8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JWT.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public static function decode(
136136
// OpenSSL expects an ASN.1 DER sequence for ES256/ES384 signatures
137137
$sig = self::signatureToDER($sig);
138138
}
139-
if (!self::verify("${headb64}.${bodyb64}", $sig, $key->getKeyMaterial(), $header->alg)) {
139+
if (!self::verify("{$headb64}.{$bodyb64}", $sig, $key->getKeyMaterial(), $header->alg)) {
140140
throw new SignatureInvalidException('Signature verification failed');
141141
}
142142

0 commit comments

Comments
 (0)