From 42fc296d4023423db5e73730876f414bbb078be2 Mon Sep 17 00:00:00 2001 From: Jon Stovell Date: Mon, 6 Nov 2023 12:59:56 -0700 Subject: [PATCH] Fixes signature mismatch in SMF\WebFetch\FtpFetcher::request() Signed-off-by: Jon Stovell --- Sources/WebFetch/APIs/FtpFetcher.php | 2 +- Sources/WebFetch/WebFetchApi.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/WebFetch/APIs/FtpFetcher.php b/Sources/WebFetch/APIs/FtpFetcher.php index ef1ea7d376..9e403c0211 100644 --- a/Sources/WebFetch/APIs/FtpFetcher.php +++ b/Sources/WebFetch/APIs/FtpFetcher.php @@ -104,7 +104,7 @@ public function __construct(?string $user = null, ?string $email = null) * @param string $url the site we are going to fetch * @return object A reference to the object for method chaining. */ - public function request(string $url): object + public function request(string $url, array|string $post_data = array()): object { $url = new Url($url, true); $url->toAscii(); diff --git a/Sources/WebFetch/WebFetchApi.php b/Sources/WebFetch/WebFetchApi.php index 51b1045e82..2034cfed7d 100644 --- a/Sources/WebFetch/WebFetchApi.php +++ b/Sources/WebFetch/WebFetchApi.php @@ -81,7 +81,7 @@ abstract class WebFetchApi implements WebFetchApiInterface /** * {@inheritDoc} */ - public function request(string $url, array $post_data = array()): object + public function request(string $url, array|string $post_data = array()): object { }