From baede2a205a11c07c22a47d3af09ad5228681014 Mon Sep 17 00:00:00 2001 From: Patrick Robrecht Date: Thu, 22 Jan 2026 10:21:05 +0100 Subject: [PATCH] Fix return type of ftp_mlsd --- 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 6e149e4..f003471 100644 --- a/src/FtpClient/FtpClient.php +++ b/src/FtpClient/FtpClient.php @@ -28,7 +28,7 @@ * @method mixed get_option(int $option) Retrieves various runtime behaviours of the current FTP stream * @method bool get(string $local_file, string $remote_file, int $mode, int $resumepos = 0) Downloads a file from the FTP server * @method int mdtm(string $remote_file) Returns the last modified time of the given file - * @method array mlsd(string $remote_dir) Returns a list of files in the given directory + * @method array|false 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) * @method int nb_fput(string $remote_file, resource $handle, int $mode, int $startpos = 0) Stores a file from an open file to the FTP server (non-blocking) diff --git a/src/FtpClient/FtpWrapper.php b/src/FtpClient/FtpWrapper.php index 3a0d45f..31def24 100644 --- a/src/FtpClient/FtpWrapper.php +++ b/src/FtpClient/FtpWrapper.php @@ -28,7 +28,7 @@ * @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 bool mkdir(string $directory) Creates a directory - * @method array mlsd(string $remote_dir) Returns a list of files in the given directory + * @method array|false 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) * @method int nb_fput(string $remote_file, resource $handle, int $mode, int $startpos = 0) Stores a file from an open file to the FTP server (non-blocking)