Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Commit 50ca465

Browse files
committed
Error code changed in throws
1 parent 8497ed0 commit 50ca465

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Curl.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @license https://opensource.org/licenses/MIT - The MIT License (MIT)
1111
* @version 1.0.0
1212
* @link https://github.com/Josantonius/PHP-Curl
13-
* @since File available since 1.0.0 - Update: 2016-12-15
13+
* @since File available since 1.0.0 - Update: 2016-12-19
1414
*/
1515

1616
namespace Josantonius\Curl;
@@ -101,7 +101,7 @@ public static function request(array $params, string $results = 'array') {
101101
break;
102102

103103
default:
104-
throw new CurlException('Parameter type not recognized.', 900);
104+
throw new CurlException('Parameter type not recognized.', 600);
105105
break;
106106
}
107107

@@ -111,7 +111,7 @@ public static function request(array $params, string $results = 'array') {
111111

112112
if (is_null($output) || !$output) {
113113

114-
throw new CurlException('No response has been received.', 900);
114+
throw new CurlException('No response has been received.', 602);
115115
}
116116

117117
curl_close($init);

0 commit comments

Comments
 (0)