Skip to content

Commit 5165e97

Browse files
author
Christian Blanquera
committed
fixed get() resource method to not have the ability to add extra pathing
1 parent 021413e commit 5165e97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OAuth/OAuth2.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ public function getLoginUrl(): string
132132
*
133133
* @return string
134134
*/
135-
public function get(string $url, array $query): array
135+
public function get(array $query): array
136136
{
137137
// send request
138138
$result = CurlHandler::i()
139-
->setUrl($this->urlResource.$url. '?' . http_build_query($query))
139+
->setUrl($this->urlResource . '?' . http_build_query($query))
140140
->setCustomRequest('GET')
141141
->getJsonResponse();
142142

0 commit comments

Comments
 (0)