Skip to content

Commit de45a4e

Browse files
authored
fix: Composer configuration, typos and type hints (#143)
1 parent f01e6fe commit de45a4e

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

composer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=5.6"
19+
"php": ">=5.6",
20+
"ext-curl": "*",
21+
"ext-json": "*"
2022
},
2123
"require-dev": {
2224
"phpunit/phpunit": "~4.4",

lib/Client.php

+9-7
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
*
1717
* Quickly and easily access any REST or REST-like API.
1818
*
19-
* @method Response get($body = null, $query = null, $headers = null)
20-
* @method Response post($body = null, $query = null, $headers = null)
21-
* @method Response patch($body = null, $query = null, $headers = null)
22-
* @method Response put($body = null, $query = null, $headers = null)
23-
* @method Response delete($body = null, $query = null, $headers = null)
19+
* @method Response get($body = null, $query = null, $headers = null, $retryOnLimit = null)
20+
* @method Response post($body = null, $query = null, $headers = null, $retryOnLimit = null)
21+
* @method Response patch($body = null, $query = null, $headers = null, $retryOnLimit = null)
22+
* @method Response put($body = null, $query = null, $headers = null, $retryOnLimit = null)
23+
* @method Response delete($body = null, $query = null, $headers = null, $retryOnLimit = null)
2424
*
2525
* @method Client version($value)
2626
* @method Client|Response send()
@@ -123,14 +123,14 @@
123123
* @method Client subusers()
124124
* @method Client reputations()
125125
*
126-
* Supressions
126+
* Suppressions
127127
* @method Client suppression()
128128
* @method Client global()
129129
* @method Client blocks()
130130
* @method Client bounces()
131131
* @method Client invalid_emails()
132132
* @method Client spam_reports()
133-
* @method Client unsubcribes()
133+
* @method Client unsubscribes()
134134
*
135135
* Templates
136136
* @method Client templates()
@@ -432,6 +432,7 @@ private function parseResponse($channel, $content)
432432
* @param array $headers original headers
433433
*
434434
* @return Response response object
435+
* @throws InvalidRequest
435436
*/
436437
private function retryRequest(array $responseHeaders, $method, $url, $body, $headers)
437438
{
@@ -562,6 +563,7 @@ public function _($name = null)
562563
* @param array $args parameters passed with the method call
563564
*
564565
* @return Client|Response|Response[]|null object
566+
* @throws InvalidRequest
565567
*/
566568
public function __call($name, $args)
567569
{

lib/Exception/InvalidRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Thrown when invalid payload was constructed, which could not reach SendGrid server.
99
*
10-
* @package SendGrid\Exceptions
10+
* @package SendGrid\Exception
1111
*/
1212
class InvalidRequest extends \Exception
1313
{

0 commit comments

Comments
 (0)