mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix the return type of ftp_raw() (#7466)
This commit is contained in:
parent
d5aed7b0e3
commit
4b3206d6c1
2 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ function ftp_chdir($ftp, string $directory): bool {}
|
||||||
function ftp_exec($ftp, string $command): bool {}
|
function ftp_exec($ftp, string $command): bool {}
|
||||||
|
|
||||||
/** @param resource $ftp */
|
/** @param resource $ftp */
|
||||||
function ftp_raw($ftp, string $command): array {}
|
function ftp_raw($ftp, string $command): ?array {}
|
||||||
|
|
||||||
/** @param resource $ftp */
|
/** @param resource $ftp */
|
||||||
function ftp_mkdir($ftp, string $directory): string|false {}
|
function ftp_mkdir($ftp, string $directory): string|false {}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: 4957601533b387d70ebb15811821fc06507cdbc2 */
|
* Stub hash: f47161a8575ef53f7c0fa6037c30e0c70462a281 */
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_ftp_connect, 0, 0, 1)
|
ZEND_BEGIN_ARG_INFO_EX(arginfo_ftp_connect, 0, 0, 1)
|
||||||
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
|
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_ARG_TYPE_INFO(0, command, IS_STRING, 0)
|
||||||
ZEND_END_ARG_INFO()
|
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_INFO(0, ftp)
|
ZEND_ARG_INFO(0, ftp)
|
||||||
ZEND_ARG_TYPE_INFO(0, command, IS_STRING, 0)
|
ZEND_ARG_TYPE_INFO(0, command, IS_STRING, 0)
|
||||||
ZEND_END_ARG_INFO()
|
ZEND_END_ARG_INFO()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue