Skip to content

Commit ba330f4

Browse files
Merge pull request sendgrid#82 from jankonas/phpdoc-fix
Add JsonSerializable type to phpDoc of $body parameter in makeRequest method
2 parents 5136063 + 14b89f8 commit ba330f4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Client.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,11 @@ private function createCurlMultiHandle($requests)
243243
* Make the API call and return the response. This is separated into
244244
* it's own function, so we can mock it easily for testing.
245245
*
246-
* @param string $method the HTTP verb
247-
* @param string $url the final url to call
248-
* @param array $body request body
249-
* @param array $headers any additional request headers
250-
* @param bool $retryOnLimit should retry if rate limit is reach?
246+
* @param string $method the HTTP verb
247+
* @param string $url the final url to call
248+
* @param array|\JsonSerializable $body request body
249+
* @param array $headers any additional request headers
250+
* @param bool $retryOnLimit should retry if rate limit is reach?
251251
*
252252
* @return Response object
253253
*/

0 commit comments

Comments
 (0)