@@ -35,8 +35,10 @@ class JWT
35
35
* When checking nbf, iat or expiration times,
36
36
* we want to provide some extra leeway time to
37
37
* account for clock skew.
38
+ *
39
+ * @var int
38
40
*/
39
- /* int */ public static $ leeway = 0 ;
41
+ /* array */ public static $ leeway = 0 ;
40
42
41
43
/**
42
44
* @var array<string, string[]>
@@ -227,7 +229,7 @@ public static function sign(
227
229
return \hash_hmac ($ algorithm , $ msg , $ key , true );
228
230
case 'openssl ' :
229
231
$ signature = '' ;
230
- $ success = \openssl_sign ($ msg , $ signature , $ key , $ algorithm );
232
+ $ success = \openssl_sign ($ msg , $ signature , $ key , $ algorithm ); // @phpstan-ignore-line
231
233
if (!$ success ) {
232
234
throw new DomainException ("OpenSSL unable to sign data " );
233
235
}
@@ -284,7 +286,7 @@ private static function verify(
284
286
list ($ function , $ algorithm ) = static ::$ supported_algs [$ alg ];
285
287
switch ($ function ) {
286
288
case 'openssl ' :
287
- $ success = \openssl_verify ($ msg , $ signature , $ keyMaterial , $ algorithm );
289
+ $ success = \openssl_verify ($ msg , $ signature , $ keyMaterial , $ algorithm ); // @phpstan-ignore-line
288
290
if ($ success === 1 ) {
289
291
return true ;
290
292
} elseif ($ success === 0 ) {
0 commit comments