From 8263e8850d70ebae43f926e563b99bca7b50f867 Mon Sep 17 00:00:00 2001 From: aymm Date: Tue, 9 Mar 2021 19:37:50 +0000 Subject: [PATCH] Fixed more typing issues --- src/APnutI.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/APnutI.php b/src/APnutI.php index 338c7b7..869c45d 100644 --- a/src/APnutI.php +++ b/src/APnutI.php @@ -117,7 +117,8 @@ class APnutI /*$this->rate_limit = null; $this->rate_limit_remaining = null; $this->rate_limit_reset = null;*/ - $this->scope = []; + $this->scopes = []; + $this->scope = ''; $response = explode("\r\n\r\n", $response, 2); $headers = $response[0]; if ($headers === 'HTTP/1.1 100 Continue') { @@ -150,12 +151,12 @@ class APnutI $this->rate_limit_reset = (int)$v; break; case 'X-OAuth-Scopes': - $this->scope = (int)$v; - $this->scopes = explode(',', (int)$v); + $this->scope = $v; + $this->scopes = explode(',', $v); break; case 'location': case 'Location': - $this->redirectTarget = (int)$v; + $this->redirectTarget = $v; break; } }