From e18e0ad667d8799dd5966ed3b2973cb48fd40d66 Mon Sep 17 00:00:00 2001 From: Alex Brouwer Date: Thu, 10 Sep 2020 11:37:56 +0200 Subject: [PATCH] fix invalid return type for mkdir (array -> bool) --- src/FtpClient/FtpClient.php | 2 +- src/FtpClient/FtpWrapper.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FtpClient/FtpClient.php b/src/FtpClient/FtpClient.php index 11ab3e7..d401b00 100644 --- a/src/FtpClient/FtpClient.php +++ b/src/FtpClient/FtpClient.php @@ -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) { diff --git a/src/FtpClient/FtpWrapper.php b/src/FtpClient/FtpWrapper.php index 7c18528..3a0d45f 100644 --- a/src/FtpClient/FtpWrapper.php +++ b/src/FtpClient/FtpWrapper.php @@ -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)