From 5cf2fcbbb7f8f5e9c3e80cc7600a9f9459b034e8 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 29 Jan 2020 20:38:19 +0000 Subject: [PATCH] simpleCurl() second return value is string[][], not string[] --- src/pocketmine/utils/Internet.php | 2 +- src/pocketmine/utils/Utils.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/utils/Internet.php b/src/pocketmine/utils/Internet.php index 56dd8e3c5..49723d6f7 100644 --- a/src/pocketmine/utils/Internet.php +++ b/src/pocketmine/utils/Internet.php @@ -187,7 +187,7 @@ class Internet{ * @param callable|null $onSuccess function to be called if there is no error. Accepts a resource argument as the cURL handle. * @phpstan-param (callable(resource) : void)|null $onSuccess * - * @return array a plain array of three [result body : string, headers : string[], HTTP response code : int]. Headers are grouped by requests with strtolower(header name) as keys and header value as values + * @return array a plain array of three [result body : string, headers : string[][], HTTP response code : int]. Headers are grouped by requests with strtolower(header name) as keys and header value as values * * @throws InternetException if a cURL error occurs */ diff --git a/src/pocketmine/utils/Utils.php b/src/pocketmine/utils/Utils.php index 46a625341..071a53b10 100644 --- a/src/pocketmine/utils/Utils.php +++ b/src/pocketmine/utils/Utils.php @@ -458,7 +458,7 @@ class Utils{ * @param callable|null $onSuccess function to be called if there is no error. Accepts a resource argument as the cURL handle. * @phpstan-param (callable(resource) : void)|null $onSuccess * - * @return array a plain array of three [result body : string, headers : string[], HTTP response code : int]. Headers are grouped by requests with strtolower(header name) as keys and header value as values + * @return array a plain array of three [result body : string, headers : string[][], HTTP response code : int]. Headers are grouped by requests with strtolower(header name) as keys and header value as values * * @throws \RuntimeException if a cURL error occurs */