fix auth token
authorMichael Wallner <mike@php.net>
Wed, 10 Jun 2015 07:57:24 +0000 (09:57 +0200)
committerMichael Wallner <mike@php.net>
Wed, 10 Jun 2015 07:57:24 +0000 (09:57 +0200)
app/Github/API/Users/ReadAuthToken.php

index 5959e3d8b3bca4a1ad3e78e3e9c014380b154904..f754350881a97a94ebd4862089070d55f6e85a5a 100644 (file)
@@ -22,7 +22,7 @@ class ReadAuthToken extends Call
                if ($response->getResponseCode() >= 400 || null === ($json = json_decode($response->getBody()))) {
                        throw new RequestException($response);
                }
-               return $json;
+               return [$json];
        }
        
        function getCacheKey() {