fix auth token
[pharext/pharext.org] / 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() {