Skip to content

Commit 42ab689

Browse files
committed
Two small issues fixed thanks to Scrutinizer.
1 parent 994164f commit 42ab689

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Kobas/APIClient/Auth/Provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class Provider
1717
{
1818
/**
19-
* @var AccessToken
19+
* @var AccessToken|null
2020
*/
2121
protected static $token;
2222
/**

src/Kobas/APIClient/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ protected function call($http_method, $route, array $params = array(), array $he
187187
$this->request->close();
188188

189189
if ($last_response >= 400) {
190-
throw new HttpException(json_encode(json_decode($result, true), true), $last_response);
190+
throw new HttpException(json_encode(json_decode($result, true)), $last_response);
191191
}
192192

193193
return json_decode($result, true);

0 commit comments

Comments
 (0)