Skip to content

Commit 2378f35

Browse files
committed
Use single line phpdoc in stubs where possible
1 parent 322864b commit 2378f35

26 files changed

+50
-129
lines changed

ext/com_dotnet/com_extension.stub.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ function com_message_pump(int $timeout_milliseconds = 0): bool {}
6666

6767
function com_load_typelib(string $typelib, bool $case_insensitive = true): bool {}
6868

69-
/**
70-
* @not-serializable
71-
*/
69+
/** @not-serializable */
7270
class variant
7371
{
7472
public function __construct(mixed $value = null, int $type = VT_EMPTY, int $codepage = CP_ACP) {}

ext/com_dotnet/com_extension_arginfo.h

Lines changed: 1 addition & 1 deletion
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: a2e260364d3f1f0e632b43be1a61294b21eed937 */
2+
* Stub hash: 6d32c6c4ed91fb542f6d78de50a4f099b9285614 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_variant_set, 0, 2, IS_VOID, 0)
55
ZEND_ARG_OBJ_INFO(0, variant, variant, 0)

ext/curl/curl_file.stub.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
/** @generate-class-entries */
44

5-
/**
6-
* @not-serializable
7-
*/
5+
/** @not-serializable */
86
class CURLFile
97
{
108
public string $name = "";

ext/curl/curl_file_arginfo.h

Lines changed: 1 addition & 1 deletion
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: 63d47eac83ee088e8b4c0d1aa469de9ae066146a */
2+
* Stub hash: 0d09bd2f3b0a155cef25ca343319ecf470424d71 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_CURLFile___construct, 0, 0, 1)
55
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)

ext/ffi/ffi.stub.php

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
namespace {
66

7-
/**
8-
* @not-serializable
9-
*/
7+
/** @not-serializable */
108
final class FFI
119
{
1210
public static function cdef(string $code = "", ?string $lib = null): FFI {}
@@ -70,15 +68,12 @@ public static function isNull(FFI\CData $ptr): bool {}
7068
}
7169

7270
namespace FFI {
73-
/**
74-
* @not-serializable
75-
*/
71+
72+
/** @not-serializable */
7673
final class CData {
7774
}
7875

79-
/**
80-
* @not-serializable
81-
*/
76+
/** @not-serializable */
8277
final class CType {
8378
public function getName(): string {}
8479

ext/ffi/ffi_arginfo.h

Lines changed: 1 addition & 1 deletion
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: a5c742bba32bd234e89268bebfc13f3cb4177719 */
2+
* Stub hash: d9dd3b93c0d1623fe61ea0bd8ee9d4c3a359bf78 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_FFI_cdef, 0, 0, FFI, 0)
55
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, code, IS_STRING, 0, "\"\"")

ext/fileinfo/fileinfo.stub.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
/** @generate-class-entries */
44

5-
/**
6-
* @not-serializable
7-
*/
5+
/** @not-serializable */
86
class finfo
97
{
108
/** @alias finfo_open */

ext/fileinfo/fileinfo_arginfo.h

Lines changed: 1 addition & 1 deletion
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: 41527cacd680ee2e9657d0a1a39614567d356d83 */
2+
* Stub hash: edb72bf1a82a6b2e027caa91c6668c27e36b9c34 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_finfo_open, 0, 0, finfo, MAY_BE_FALSE)
55
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "FILEINFO_NONE")

ext/imap/php_imap.stub.php

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ function imap_rfc822_parse_adrlist(string $string, string $default_hostname): ar
3737

3838
function imap_body(IMAP\Connection $imap, int $message_num, int $flags = 0): string|false {}
3939

40-
/**
41-
* @alias imap_body
42-
*/
40+
/** @alias imap_body */
4341
function imap_fetchtext(IMAP\Connection $imap, int $message_num, int $flags = 0): string|false {}
4442

4543
function imap_bodystruct(IMAP\Connection $imap, int $message_num, string $section): \stdClass|false {}
@@ -48,43 +46,29 @@ function imap_fetchbody(IMAP\Connection $imap, int $message_num, string $section
4846

4947
function imap_fetchmime(IMAP\Connection $imap, int $message_num, string $section, int $flags = 0): string|false {}
5048

51-
/**
52-
* @param resource|string|int $file
53-
*/
49+
/** @param resource|string|int $file */
5450
function imap_savebody(IMAP\Connection $imap, $file, int $message_num, string $section = "", int $flags = 0): bool {}
5551

5652
function imap_fetchheader(IMAP\Connection $imap, int $message_num, int $flags = 0): string|false {}
5753

5854
function imap_fetchstructure(IMAP\Connection $imap, int $message_num, int $flags = 0): \stdClass|false {}
5955

60-
/**
61-
*/
6256
function imap_gc(IMAP\Connection $imap, int $flags): bool {}
6357

64-
/**
65-
*/
6658
function imap_expunge(IMAP\Connection $imap): bool {}
6759

68-
/**
69-
*/
7060
function imap_delete(IMAP\Connection $imap, string $message_num, int $flags = 0): bool {}
7161

72-
/**
73-
*/
7462
function imap_undelete(IMAP\Connection $imap, string $message_num, int $flags = 0): bool {}
7563

7664
function imap_check(IMAP\Connection $imap): \stdClass|false {}
7765

7866
function imap_listscan(IMAP\Connection $imap, string $reference, string $pattern, string $content): array|false {}
7967

80-
/**
81-
* @alias imap_listscan
82-
*/
68+
/** @alias imap_listscan */
8369
function imap_scan(IMAP\Connection $imap, string $reference, string $pattern, string $content): array|false {}
8470

85-
/**
86-
* @alias imap_listscan
87-
*/
71+
/** @alias imap_listscan */
8872
function imap_scanmailbox(IMAP\Connection $imap, string $reference, string $pattern, string $content): array|false {}
8973

9074
function imap_mail_copy(IMAP\Connection $imap, string $message_nums, string $mailbox, int $flags = 0): bool {}
@@ -95,16 +79,12 @@ function imap_mail_compose(array $envelope, array $bodies): string|false {}
9579

9680
function imap_createmailbox(IMAP\Connection $imap, string $mailbox): bool {}
9781

98-
/**
99-
* @alias imap_createmailbox
100-
*/
82+
/** @alias imap_createmailbox */
10183
function imap_create(IMAP\Connection $imap, string $mailbox): bool {}
10284

10385
function imap_renamemailbox(IMAP\Connection $imap, string $from, string $to): bool {}
10486

105-
/**
106-
* @alias imap_renamemailbox
107-
*/
87+
/** @alias imap_renamemailbox */
10888
function imap_rename(IMAP\Connection $imap, string $from, string $to): bool {}
10989

11090
function imap_deletemailbox(IMAP\Connection $imap, string $mailbox): bool {}
@@ -143,16 +123,12 @@ function imap_msgno(IMAP\Connection $imap, int $message_uid): int {}
143123

144124
function imap_list(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
145125

146-
/**
147-
* @alias imap_list
148-
*/
126+
/** @alias imap_list */
149127
function imap_listmailbox(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
150128

151129
function imap_lsub(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
152130

153-
/**
154-
* @alias imap_lsub
155-
*/
131+
/** @alias imap_lsub */
156132
function imap_listsubscribed(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
157133

158134
function imap_getsubscribed(IMAP\Connection $imap, string $reference, string $pattern): array|false {}

ext/imap/php_imap_arginfo.h

Lines changed: 1 addition & 1 deletion
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: 706de8c7fbb821b71ad8cfdbbab38fe30fa6590a */
2+
* Stub hash: 5f8aa79b08eeca70b934040b8ed3809f249cbef7 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_imap_open, 0, 3, IMAP\\Connection, MAY_BE_FALSE)
55
ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0)

ext/intl/formatter/formatter.stub.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
/** @generate-class-entries */
44

5-
/**
6-
* @not-serializable
7-
*/
5+
/** @not-serializable */
86
class NumberFormatter
97
{
108
public function __construct(string $locale, int $style, ?string $pattern = null) {}

ext/intl/formatter/formatter_arginfo.h

Lines changed: 1 addition & 1 deletion
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: 3cc95768092e2c6ddfcab9379d1963b58ab94def */
2+
* Stub hash: f76ad76b08b7ca47883659fabfcc0882a2820c43 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_NumberFormatter___construct, 0, 0, 2)
55
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)

ext/ldap/ldap.stub.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ function ldap_rename(LDAP\Connection $ldap, string $dn, string $new_rdn, string
125125

126126
function ldap_rename_ext(LDAP\Connection $ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, ?array $controls = null): LDAP\Result|false {}
127127

128-
/**
129-
* @param array|string|int $value
130-
*/
128+
/** @param array|string|int $value */
131129
function ldap_get_option(LDAP\Connection $ldap, int $option, &$value = null): bool {}
132130

133131
/** @param array|string|int|bool $value */

ext/ldap/ldap_arginfo.h

Lines changed: 1 addition & 1 deletion
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: 482ee2b3df6b6f6b9e86e0af890c441d6222356d */
2+
* Stub hash: a1beb155767af8500567030b493d9d3ec408270a */
33

44
#if defined(HAVE_ORALDAP)
55
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_ldap_connect, 0, 0, LDAP\\Connection, MAY_BE_FALSE)

ext/pdo/pdo_dbh.stub.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
/** @generate-class-entries */
44

5-
/**
6-
* @not-serializable
7-
*/
5+
/** @not-serializable */
86
class PDO
97
{
108
public function __construct(string $dsn, ?string $username = null, ?string $password = null, ?array $options = null) {}

ext/pdo/pdo_dbh_arginfo.h

Lines changed: 1 addition & 1 deletion
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: 427f534213227208cd0b02c936d526ea08fa008f */
2+
* Stub hash: ec880c39e211dbfd4c239292b8cc9e7babab105b */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDO___construct, 0, 0, 1)
55
ZEND_ARG_TYPE_INFO(0, dsn, IS_STRING, 0)

ext/pdo/pdo_stmt.stub.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
/** @generate-class-entries */
44

5-
/**
6-
* @not-serializable
7-
*/
5+
/** @not-serializable */
86
class PDOStatement implements IteratorAggregate
97
{
108
public string $queryString;
@@ -69,9 +67,7 @@ public function setFetchMode(int $mode, mixed ...$args) {} // TODO make return t
6967
public function getIterator(): Iterator {}
7068
}
7169

72-
/**
73-
* @not-serializable
74-
*/
70+
/** @not-serializable */
7571
final class PDORow
7672
{
7773
public string $queryString;

ext/pdo/pdo_stmt_arginfo.h

Lines changed: 1 addition & 1 deletion
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: f5f2932888bcbffa771092e9a54508d4c51c32ab */
2+
* Stub hash: adcbda7b6763141981700bec5d8c5b739f8de767 */
33

44
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_bindColumn, 0, 2, _IS_BOOL, 0)
55
ZEND_ARG_TYPE_MASK(0, column, MAY_BE_STRING|MAY_BE_LONG, NULL)

ext/pgsql/pgsql.stub.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,7 @@ function pg_field_prtlen(PgSql\Result $result, $row, string|int $field = UNKNOWN
185185
*/
186186
function pg_fieldprtlen(PgSql\Result $result, $row, string|int $field = UNKNOWN): int|false {}
187187

188-
/**
189-
* @param string|int $row
190-
*/
188+
/** @param string|int $row */
191189
function pg_field_is_null(PgSql\Result $result, $row, string|int $field = UNKNOWN): int|false {}
192190

193191
/**

ext/pgsql/pgsql_arginfo.h

Lines changed: 1 addition & 1 deletion
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: 39b3a34ba955184bbfcc7a792fa0ecc2877ac064 */
2+
* Stub hash: 37814767f8290b717a4facbdf55ef3bfc1fc24c8 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_connect, 0, 1, PgSql\\Connection, MAY_BE_FALSE)
55
ZEND_ARG_TYPE_INFO(0, connection_string, IS_STRING, 0)

0 commit comments

Comments
 (0)