summaryrefslogtreecommitdiff
path: root/src/HttpClient.php
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-10-12 12:40:25 +0300
committerWolfy-J <[email protected]>2019-10-12 12:40:25 +0300
commit622fb02507ca41b700d4d54f93f9bfa54020d933 (patch)
tree955bd429bea778252403ab7a4cb16fd06e6c631c /src/HttpClient.php
parent5d4a699daa0a3696a5bac04cf5568310ff2b7a5c (diff)
- polishing health service tests
- adding auto-CS tools
Diffstat (limited to 'src/HttpClient.php')
-rw-r--r--src/HttpClient.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/HttpClient.php b/src/HttpClient.php
index d2862ad8..6308eabc 100644
--- a/src/HttpClient.php
+++ b/src/HttpClient.php
@@ -1,4 +1,5 @@
<?php
+
/**
* High-performance PHP process supervisor and load balancer written in Go
*
@@ -30,7 +31,8 @@ final class HttpClient
}
/**
- * @return array|null Request information as ['ctx'=>[], 'body'=>string] or null if termination request or invalid context.
+ * @return array|null Request information as ['ctx'=>[], 'body'=>string]
+ * or null if termination request or invalid context.
*/
public function acceptRequest()
{
@@ -58,7 +60,7 @@ final class HttpClient
* key MUST be a header name, and each value MUST be an array of strings
* for that header.
*/
- public function respond(int $status, string $body, array $headers = [])
+ public function respond(int $status, string $body, array $headers = []): void
{
if (empty($headers)) {
// this is required to represent empty header set as map and not as array