Skip to content

Commit ce3f43f

Browse files
committed
Merging both arrays together
1 parent bd842ca commit ce3f43f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Authentication/JWT.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public static function encode($payload, $key, $alg = 'HS256', $keyId = null, $he
132132
$header['kid'] = $keyId;
133133
}
134134
if ( isset($head) && is_array($head) ) {
135-
array_push($header, array_values($head));
135+
array_merge($header, $head);
136136
}
137137
$segments = array();
138138
$segments[] = JWT::urlsafeB64Encode(JWT::jsonEncode($header));

0 commit comments

Comments
 (0)