diff options
author | Martin Cocaro <martin.cocaro@gmail.com> | 2015-06-17 16:06:48 -0700 |
---|---|---|
committer | Martin Cocaro <martin.cocaro@gmail.com> | 2015-06-17 16:06:48 -0700 |
commit | 2de26c2e0e5813d57fff1008ed6c253df9e2bc04 (patch) | |
tree | 9fe221a387d5f01a25662021cc45811afe0e4ce6 | |
parent | ce3f43f85c4e3707cf338781c0798fdd170f46cf (diff) | |
download | php-jwt-2de26c2e0e5813d57fff1008ed6c253df9e2bc04.zip php-jwt-2de26c2e0e5813d57fff1008ed6c253df9e2bc04.tar.gz php-jwt-2de26c2e0e5813d57fff1008ed6c253df9e2bc04.tar.bz2 |
Assigning to header var merged array
-rw-r--r-- | Authentication/JWT.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Authentication/JWT.php b/Authentication/JWT.php index 11d1e82..8791000 100644 --- a/Authentication/JWT.php +++ b/Authentication/JWT.php @@ -132,7 +132,7 @@ class JWT $header['kid'] = $keyId; } if ( isset($head) && is_array($head) ) { - array_merge($header, $head); + $header = array_merge($header, $head); } $segments = array(); $segments[] = JWT::urlsafeB64Encode(JWT::jsonEncode($header)); |