diff --git a/README.md b/README.md index b4ddf79..0728029 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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" } } ``` diff --git a/composer.json b/composer.json index f0f83ef..3877581 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/src/Api/AbstractApi.php b/src/Api/AbstractApi.php index 15fb323..6fdbea0 100644 --- a/src/Api/AbstractApi.php +++ b/src/Api/AbstractApi.php @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 {