Skip to content

Commit

Permalink
Merge pull request #56 from Bromvlieg/master
Browse files Browse the repository at this point in the history
fix invalid return type for mkdir (array -> bool)
  • Loading branch information
Nicolab committed Sep 10, 2020
2 parents 53eebf0 + e18e0ad commit 572102d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 572102d

Please sign in to comment.