Skip to content

Commit f3b7207

Browse files
committed
regenerated
1 parent 9ec7f70 commit f3b7207

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

generated/ldap.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ function ldap_add($link_identifier, string $dn, array $entry, array $serverctrls
5959
* Does the same thing as ldap_bind but returns the LDAP result resource to be parsed with ldap_parse_result.
6060
*
6161
* @param resource $link_identifier
62-
* @param string $bind_rdn
63-
* @param string $bind_password
62+
* @param string|null $bind_rdn
63+
* @param string|null $bind_password
6464
* @param array $serverctrls
6565
* @return resource Returns an LDAP result identifier.
6666
* @throws LdapException
6767
*
6868
*/
69-
function ldap_bind_ext($link_identifier, string $bind_rdn = null, string $bind_password = null, array $serverctrls = null)
69+
function ldap_bind_ext($link_identifier, ?string $bind_rdn = null, ?string $bind_password = null, array $serverctrls = null)
7070
{
7171
error_clear_last();
7272
$result = \ldap_bind_ext($link_identifier, $bind_rdn, $bind_password, $serverctrls);
@@ -81,13 +81,13 @@ function ldap_bind_ext($link_identifier, string $bind_rdn = null, string $bind_p
8181
* Binds to the LDAP directory with specified RDN and password.
8282
*
8383
* @param resource $link_identifier An LDAP link identifier, returned by ldap_connect.
84-
* @param string $bind_rdn
85-
* @param string $bind_password
84+
* @param string|null $bind_rdn
85+
* @param string|null $bind_password
8686
* @param array $serverctrls Array of LDAP Controls to send with the request.
8787
* @throws LdapException
8888
*
8989
*/
90-
function ldap_bind($link_identifier, string $bind_rdn = null, string $bind_password = null, array $serverctrls = null): void
90+
function ldap_bind($link_identifier, ?string $bind_rdn = null, ?string $bind_password = null, array $serverctrls = null): void
9191
{
9292
error_clear_last();
9393
$result = \ldap_bind($link_identifier, $bind_rdn, $bind_password, $serverctrls);
@@ -254,7 +254,7 @@ function ldap_exop_whoami($link): string
254254
* @param resource $link An LDAP link identifier, returned by ldap_connect.
255255
* @param string $reqoid The extended operation request OID. You may use one of LDAP_EXOP_START_TLS, LDAP_EXOP_MODIFY_PASSWD, LDAP_EXOP_REFRESH, LDAP_EXOP_WHO_AM_I, LDAP_EXOP_TURN, or a string with the OID of the operation you want to send.
256256
* @param string $reqdata The extended operation request data. May be NULL for some operations like LDAP_EXOP_WHO_AM_I, may also need to be BER encoded.
257-
* @param array $serverctrls Array of LDAP Controls to send with the request.
257+
* @param array|null $serverctrls Array of LDAP Controls to send with the request.
258258
* @param string|null $retdata Will be filled with the extended operation response data if provided.
259259
* If not provided you may use ldap_parse_exop on the result object
260260
* later to get this data.
@@ -264,7 +264,7 @@ function ldap_exop_whoami($link): string
264264
* @throws LdapException
265265
*
266266
*/
267-
function ldap_exop($link, string $reqoid, string $reqdata = null, array $serverctrls = null, ?string &$retdata = null, ?string &$retoid = null)
267+
function ldap_exop($link, string $reqoid, string $reqdata = null, ?array $serverctrls = null, ?string &$retdata = null, ?string &$retoid = null)
268268
{
269269
error_clear_last();
270270
$result = \ldap_exop($link, $reqoid, $reqdata, $serverctrls, $retdata, $retoid);
@@ -1404,7 +1404,7 @@ function ldap_search($link_identifier, string $base_dn, string $filter, array $a
14041404
/**
14051405
* Sets the value of the specified option to be newval.
14061406
*
1407-
* @param resource $link_identifier An LDAP link identifier, returned by ldap_connect.
1407+
* @param resource|null $link_identifier An LDAP link identifier, returned by ldap_connect.
14081408
* @param int $option The parameter option can be one of:
14091409
*
14101410
*

generated/mbstring.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ function mb_regex_encoding(string $encoding = null)
418418
* This parameter is not automatically encoded.
419419
* @param string $subject The subject of the mail.
420420
* @param string $message The message of the mail.
421-
* @param string $additional_headers String or array to be inserted at the end of the email header.
421+
* @param string|array|null $additional_headers String or array to be inserted at the end of the email header.
422422
*
423423
* This is typically used to add extra headers (From, Cc, and Bcc).
424424
* Multiple extra headers should be separated with a CRLF (\r\n).
@@ -464,7 +464,7 @@ function mb_regex_encoding(string $encoding = null)
464464
* @throws MbstringException
465465
*
466466
*/
467-
function mb_send_mail(string $to, string $subject, string $message, string $additional_headers = null, string $additional_parameter = null): void
467+
function mb_send_mail(string $to, string $subject, string $message, $additional_headers = null, string $additional_parameter = null): void
468468
{
469469
error_clear_last();
470470
$result = \mb_send_mail($to, $subject, $message, $additional_headers, $additional_parameter);

generated/mysql.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function mysql_db_name($result, int $row, $field = null): string
190190
* will try to create one as if mysql_connect had been called
191191
* with no arguments. If no connection is found or established, an
192192
* E_WARNING level error is generated.
193-
* @return resource Returns a positive MySQL result resource to the query result. The function also returns TRUE/FALSE for
193+
* @return resource|bool Returns a positive MySQL result resource to the query result. The function also returns TRUE/FALSE for
194194
* INSERT/UPDATE/DELETE
195195
* queries to indicate success/failure.
196196
* @throws MysqlException
@@ -684,7 +684,7 @@ function mysql_num_rows($result): int
684684
* will try to create one as if mysql_connect had been called
685685
* with no arguments. If no connection is found or established, an
686686
* E_WARNING level error is generated.
687-
* @return resource For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset,
687+
* @return resource|bool For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset,
688688
* mysql_query
689689
* returns a resource on success.
690690
*
@@ -918,7 +918,7 @@ function mysql_thread_id($link_identifier = null): int
918918
* will try to create one as if mysql_connect had been called
919919
* with no arguments. If no connection is found or established, an
920920
* E_WARNING level error is generated.
921-
* @return resource For SELECT, SHOW, DESCRIBE or EXPLAIN statements,
921+
* @return resource|bool For SELECT, SHOW, DESCRIBE or EXPLAIN statements,
922922
* mysql_unbuffered_query
923923
* returns a resource on success.
924924
*

generator/src/PhpStanFunctions/CustomPhpStanFunctionMap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77

88
return [
9-
'swoole_async_writefile' => ['bool', 'filename'=>'string', 'content'=>'string', 'callback='=>'callable', 'flags='=>'int'],
109
'libxml_get_last_error' => ['LibXMLError|false'], //LibXMLError need to be uppercase
1110
'gmp_random_seed' => ['void', 'seed'=>'GMP|string|int'], //gmp_random_seed doesn't return
1211
'imageconvolution' => ['bool', 'src_im'=>'resource', 'matrix3x3'=>'array', 'div'=>'float', 'offset'=>'float'], //imageconvolution return a bool

0 commit comments

Comments
 (0)