From df0acb7b531e77ec5c503a4996359b6c816060da Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 30 Jan 2019 03:44:22 -0800 Subject: Add types to return function --- src/HttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3