Skip to content

Commit 4b3206d

Browse files
authored
Fix the return type of ftp_raw() (#7466)
1 parent d5aed7b commit 4b3206d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/ftp/ftp.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function ftp_chdir($ftp, string $directory): bool {}
2626
function ftp_exec($ftp, string $command): bool {}
2727

2828
/** @param resource $ftp */
29-
function ftp_raw($ftp, string $command): array {}
29+
function ftp_raw($ftp, string $command): ?array {}
3030

3131
/** @param resource $ftp */
3232
function ftp_mkdir($ftp, string $directory): string|false {}

ext/ftp/ftp_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 4957601533b387d70ebb15811821fc06507cdbc2 */
2+
* Stub hash: f47161a8575ef53f7c0fa6037c30e0c70462a281 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_ftp_connect, 0, 0, 1)
55
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)
3939
ZEND_ARG_TYPE_INFO(0, command, IS_STRING, 0)
4040
ZEND_END_ARG_INFO()
4141

42-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ftp_raw, 0, 2, IS_ARRAY, 0)
42+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ftp_raw, 0, 2, IS_ARRAY, 1)
4343
ZEND_ARG_INFO(0, ftp)
4444
ZEND_ARG_TYPE_INFO(0, command, IS_STRING, 0)
4545
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)