Skip to content

Commit 70533b5

Browse files
Merge pull request rjvandoesburg#30 from kn0x1c/patch-1
Adding support for guzzle/psr7 above 2.0.0
2 parents ebc265c + 7f488cd commit 70533b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Requests/AbstractRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function createClient()
9696
*/
9797
public function getRequestUrl($resource)
9898
{
99-
return Psr7\uri_for($this->getApi().'/'.$resource);
99+
return Psr7\Utils::uriFor($this->getApi().'/'.$resource);
100100
}
101101

102102
/**
@@ -213,7 +213,7 @@ public function getOptions($method, $parameters = [], $asQueryParameters = false
213213
protected function getJiraHost()
214214
{
215215
$host = config('atlassian.jira.host');
216-
$uri = Psr7\uri_for($host);
216+
$uri = Psr7\Utils::uriFor($host);
217217

218218
return $uri->getHost();
219219
}
@@ -271,4 +271,4 @@ public function addMiddleware($middleware, $name = null)
271271
return $this;
272272
}
273273

274-
}
274+
}

0 commit comments

Comments
 (0)