From 15eee0e8146f0bdd2f738331a727c529b74ef829 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 5 Apr 2024 05:18:49 +0300 Subject: [PATCH] allow nullable $length attribute --- src/Client/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client/Request.php b/src/Client/Request.php index 3309e62..54b553c 100644 --- a/src/Client/Request.php +++ b/src/Client/Request.php @@ -112,7 +112,7 @@ class Request int $timeout = 30, // socket timeout, useful for offline resources ?int $limit = null, // content length, null for unlimited int $chunk = 1, // chunk size in bytes - int &$length = 0, // current response length, do not change without special needs + ?int &$length = 0, // initial response length, do not change without special needs ?int &$code = null, // error code for debug ?string &$message = null, // error message for debug string &$response = '' // response init, also returning by this method