Skip to content

Commit

Permalink
Merge pull request #7854 from Sesquipedalian/ftpfetcher_request
Browse files Browse the repository at this point in the history
Fixes signature mismatch in SMF\WebFetch\FtpFetcher::request()
  • Loading branch information
Sesquipedalian authored Nov 7, 2023
2 parents 323322e + 42fc296 commit 76dfb27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/WebFetch/APIs/FtpFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion Sources/WebFetch/WebFetchApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
}

Expand Down

0 comments on commit 76dfb27

Please sign in to comment.