Skip to content

Commit

Permalink
fix: string interpolation format for php 8.2 (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvsantos1 committed Oct 5, 2022
1 parent 60b52b7 commit 2e07d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JWT.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public static function decode(
// OpenSSL expects an ASN.1 DER sequence for ES256/ES384 signatures
$sig = self::signatureToDER($sig);
}
if (!self::verify("${headb64}.${bodyb64}", $sig, $key->getKeyMaterial(), $header->alg)) {
if (!self::verify("{$headb64}.{$bodyb64}", $sig, $key->getKeyMaterial(), $header->alg)) {
throw new SignatureInvalidException('Signature verification failed');
}

Expand Down

0 comments on commit 2e07d8a

Please sign in to comment.