From 436bc67725601f23653095fbc62d6bcb65d689fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20Viemer=C3=B6?= Date: Fri, 10 Nov 2023 08:57:30 +0200 Subject: [PATCH] Add missing documentation for `$data` attribute in `http_request()` --- php/utils.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/php/utils.php b/php/utils.php index b6968c250..90c940e8f 100644 --- a/php/utils.php +++ b/php/utils.php @@ -760,10 +760,12 @@ static function ( $matches ) use ( $file, $dir ) { * * @access public * - * @param string $method HTTP method (GET, POST, DELETE, etc.). - * @param string $url URL to make the HTTP request to. - * @param array $headers Add specific headers to the request. - * @param array $options { + * @param string $method HTTP method (GET, POST, DELETE, etc.). + * @param string $url URL to make the HTTP request to. + * @param array|null $data Data to send either as a query string for GET/HEAD requests, + * or in the body for POST requests. + * @param array $headers Add specific headers to the request. + * @param array $options { * Optional. An associative array of additional request options. * * @type bool $halt_on_error Whether or not command execution should be halted on error. Default: true