summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/Worker.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Worker.php b/source/Worker.php
index f21b27c0..f9700f0c 100644
--- a/source/Worker.php
+++ b/source/Worker.php
@@ -73,10 +73,10 @@ class Worker
* Example:
* $worker->respond((string)$response->getBody(), json_encode($response->getHeaders()));
*
- * @param string $payload
- * @param string $header
+ * @param string|null $payload
+ * @param string|null $header
*/
- public function send(string $payload, string $header = null)
+ public function send(string $payload = null, string $header = null)
{
if (is_null($header)) {
$this->relay->send($header, Relay::PAYLOAD_CONTROL | Relay::PAYLOAD_NONE);