Skip to content

Commit

Permalink
Fixes signature mismatch in SMF\WebFetch\FtpFetcher::request()
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Nov 6, 2023
1 parent 323322e commit 42fc296
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 42fc296

Please sign in to comment.