summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex <[email protected]>2019-01-30 03:44:22 -0800
committerAlex <[email protected]>2019-01-30 03:44:22 -0800
commitdf0acb7b531e77ec5c503a4996359b6c816060da (patch)
tree9b4044c1cb771337e3198083467e5459ce4f3ad0 /src
parent157e88bcf41426f76b2a599ad7cea70276359920 (diff)
Add types to return function
Diffstat (limited to 'src')
-rw-r--r--src/HttpClient.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HttpClient.php b/src/HttpClient.php
index b8df83c0..70b46ef5 100644
--- a/src/HttpClient.php
+++ b/src/HttpClient.php
@@ -52,7 +52,7 @@ class HttpClient
* key MUST be a header name, and each value MUST be an array of strings
* for that header.
*/
- public function respond($status, $body, $headers = [])
+ public function respond(int $status, string $body, $headers = [])
{
if (empty($headers)) {
// this is required to represent empty header set as map and not as array