File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -394,11 +394,11 @@ public static function urlsafeB64Encode($input)
394
394
private static function getKeyMaterialAndAlgorithm ($ keyOrKeyArray , $ kid = null )
395
395
{
396
396
if (is_string ($ keyOrKeyArray )) {
397
- return [ $ keyOrKeyArray , null ] ;
397
+ return array ( $ keyOrKeyArray , null ) ;
398
398
}
399
399
400
400
if ($ keyOrKeyArray instanceof Key) {
401
- return [ $ keyOrKeyArray ->getKeyMaterial (), $ keyOrKeyArray ->getAlgorithm ()] ;
401
+ return array ( $ keyOrKeyArray ->getKeyMaterial (), $ keyOrKeyArray ->getAlgorithm ()) ;
402
402
}
403
403
404
404
if (is_array ($ keyOrKeyArray ) || $ keyOrKeyArray instanceof ArrayAccess) {
@@ -412,10 +412,10 @@ private static function getKeyMaterialAndAlgorithm($keyOrKeyArray, $kid = null)
412
412
$ key = $ keyOrKeyArray [$ kid ];
413
413
414
414
if ($ key instanceof Key) {
415
- return [ $ key ->getKeyMaterial (), $ key ->getAlgorithm ()] ;
415
+ return array ( $ key ->getKeyMaterial (), $ key ->getAlgorithm ()) ;
416
416
}
417
417
418
- return [ $ key , null ] ;
418
+ return array ( $ key , null ) ;
419
419
}
420
420
421
421
throw new UnexpectedValueException (
You can’t perform that action at this time.
0 commit comments