Skip to content

Commit 5d110f1

Browse files
committed
Merge pull request #12 from vhx/v1.4.1
fix typos in handlecurl method
2 parents 0152d1f + 1be1c85 commit 5d110f1

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 1.4.1
2+
**2016-04-22**
3+
* Fix typos with handleCurlError method
4+
15
### 1.4.0
26
**2016-02-18**
37
* Fix bug with parsing `href`/`id` param

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.0
1+
1.4.1

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vhx/vhx-php",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "VHX PHP API Wrapper",
55
"keywords": [
66
"vhx",

lib/Resource.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ protected static function _handleResponseError($result, $code) {
189189
}
190190
}
191191

192-
protected static function handleCurlError($url, $errno, $message) {
192+
protected static function _handleCurlError($url, $errno, $message) {
193193
switch ($errno) {
194194
case CURLE_COULDNT_CONNECT:
195195
case CURLE_COULDNT_RESOLVE_HOST:
@@ -200,6 +200,6 @@ protected static function handleCurlError($url, $errno, $message) {
200200
$msg = "Unexpected error communicating with VHX. If this problem persists,";
201201
}
202202
$msg .= " let us know at support@vhx.tv. \n\n(Network error [errno $errno]: $message)";
203-
throw new Error\Connection(msg, 408);
203+
throw new Error\Connection($msg, 408);
204204
}
205205
}

0 commit comments

Comments
 (0)