diff --git a/ext/ftp/ftp.stub.php b/ext/ftp/ftp.stub.php index 0c6b1c5b697..6693641e2b4 100644 --- a/ext/ftp/ftp.stub.php +++ b/ext/ftp/ftp.stub.php @@ -27,7 +27,7 @@ namespace { function ftp_cdup(FTP\Connection $ftp): bool {} function ftp_chdir(FTP\Connection $ftp, string $directory): bool {} function ftp_exec(FTP\Connection $ftp, string $command): bool {} - function ftp_raw(FTP\Connection $ftp, string $command): array {} + function ftp_raw(FTP\Connection $ftp, string $command): ?array {} function ftp_mkdir(FTP\Connection $ftp, string $directory): string|false {} function ftp_rmdir(FTP\Connection $ftp, string $directory): bool {} function ftp_chmod(FTP\Connection $ftp, int $permissions, string $filename): int|false {} diff --git a/ext/ftp/ftp_arginfo.h b/ext/ftp/ftp_arginfo.h index 68ee18b3812..92c580ca28b 100644 --- a/ext/ftp/ftp_arginfo.h +++ b/ext/ftp/ftp_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: bfc9846eb1f74990ec9b406728efff66fe49295f */ + * Stub hash: 6de0997e9f07a8e1079764ab1841d3ac4651cc53 */ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_ftp_connect, 0, 1, FTP\\Connection, MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) @@ -39,7 +39,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ftp_exec, 0, 2, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, command, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ftp_raw, 0, 2, IS_ARRAY, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ftp_raw, 0, 2, IS_ARRAY, 1) ZEND_ARG_OBJ_INFO(0, ftp, FTP\\Connection, 0) ZEND_ARG_TYPE_INFO(0, command, IS_STRING, 0) ZEND_END_ARG_INFO()