Skip to content

Commit

Permalink
v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyHyer committed Aug 2, 2021
1 parent 4fe9947 commit 613b41c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ endorsed by BambooHR in any way.
## Installation

> __NOTE__: This package currently requires PHP >= 7.0.0
>
> If you have a need for PHP 5.x support let me know by opening an issue (or feel free to submit a pull request).
#### Via Composer

Expand All @@ -28,7 +26,7 @@ Or add the following to your `composer.json` file:
```json
{
"require": {
"jeffreyhyer/bamboohr": "~1.0.6"
"jeffreyhyer/bamboohr": "~1.0.7"
}
}
```
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "jeffreyhyer/bamboohr",
"type": "library",
"description": "PHP SDK for the BambooHR API",
"keywords": ["bamboohr", "api", "sdk", "unofficial", "php", "php7"],
"version": "1.0.6",
"keywords": ["bamboohr", "api", "sdk", "unofficial", "php", "php7", "php8"],
"version": "1.0.7",
"license": "MIT",
"homepage": "https://github.com/jeffreyhyer/bamboohr",
"support": {
Expand Down
10 changes: 5 additions & 5 deletions src/Api/AbstractApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function get($path, $queryStr = [], $auth = true)
);

return $this->_respond($response);
} catch (\GuzzleHttp\Exception\TransferException $e) {
} catch (\GuzzleHttp\Exception\RequestException $e) {
if ($e->hasResponse()) {
return $this->_respond($e->getResponse());
} else {
Expand Down Expand Up @@ -77,7 +77,7 @@ public function post($path, $body, $queryStr = [], $auth = true)
);

return $this->_respond($response);
} catch (\GuzzleHttp\Exception\TransferException $e) {
} catch (\GuzzleHttp\Exception\RequestException $e) {
if ($e->hasResponse()) {
return $this->_respond($e->getResponse());
} else {
Expand Down Expand Up @@ -114,7 +114,7 @@ public function put($path, $body, $queryStr = [], $auth = true)
);

return $this->_respond($response);
} catch (\GuzzleHttp\Exception\TransferException $e) {
} catch (\GuzzleHttp\Exception\RequestException $e) {
if ($e->hasResponse()) {
return $this->_respond($e->getResponse());
} else {
Expand Down Expand Up @@ -144,7 +144,7 @@ public function delete($path, $queryStr = [], $auth = true)
);

return $this->_respond($response);
} catch (\GuzzleHttp\Exception\TransferException $e) {
} catch (\GuzzleHttp\Exception\RequestException $e) {
if ($e->hasResponse()) {
return $this->_respond($e->getResponse());
} else {
Expand Down Expand Up @@ -193,7 +193,7 @@ public function postFile($path, array $body, $queryStr = [], $auth = true)
);

return $this->_respond($response);
} catch (\GuzzleHttp\Exception\TransferException $e) {
} catch (\GuzzleHttp\Exception\RequestException $e) {
if ($e->hasResponse()) {
return $this->_respond($e->getResponse());
} else {
Expand Down

0 comments on commit 613b41c

Please sign in to comment.