Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix invalid return type for mkdir (array -> bool) #56

Merged
merged 1 commit into from
Sep 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/FtpClient/FtpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public function nlist($directory = '.', $recursive = false, $filter = 'sort')
*
* @param string $directory The directory
* @param bool $recursive
* @return array
* @return bool
*/
public function mkdir($directory, $recursive = false)
{
Expand Down
2 changes: 1 addition & 1 deletion src/FtpClient/FtpWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @method bool get(string $local_file, string $remote_file, int $mode, int $resumepos = 0) Downloads a file from the FTP server
* @method bool login(string $username, string $password) Logs in to an FTP connection
* @method int mdtm(string $remote_file) Returns the last modified time of the given file
* @method string mkdir(string $directory) Creates a directory
* @method bool mkdir(string $directory) Creates a directory
* @method array mlsd(string $remote_dir) Returns a list of files in the given directory
* @method int nb_continue() Continues retrieving/sending a file (non-blocking)
* @method int nb_fget(resource $handle, string $remote_file, int $mode, int $resumepos = 0) Retrieves a file from the FTP server and writes it to an open file (non-blocking)
Expand Down