Skip to content

Commit 0740f5a

Browse files
committed
regenerated
1 parent 32d0ac3 commit 0740f5a

18 files changed

+40
-50
lines changed

generated/apc.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,18 @@ function apc_delete_file($keys)
159159
/**
160160
* Removes a stored variable from the cache.
161161
*
162-
* @param string|string[]|APCIterator $key The key used to store the value (with
162+
* @param string|string[]|\APCIterator $key The key used to store the value (with
163163
* apc_store).
164164
* @throws ApcException
165165
*
166166
*/
167-
function apc_delete($key)
167+
function apc_delete($key): void
168168
{
169169
error_clear_last();
170170
$result = \apc_delete($key);
171171
if ($result === false) {
172172
throw ApcException::createFromPhpError();
173173
}
174-
return $result;
175174
}
176175

177176

generated/apcu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function apcu_dec(string $key, int $step = 1, ?bool &$success = null, int $ttl =
7272
/**
7373
* Removes a stored variable from the cache.
7474
*
75-
* @param string|string[]|APCUIterator $key A key used to store the value as a
75+
* @param string|string[]|\APCUIterator $key A key used to store the value as a
7676
* string for a single key,
7777
* or as an array of strings for several keys,
7878
* or as an APCUIterator object.

generated/array.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function array_combine(array $keys, array $values): array
4343
* used as its value, and all others will be lost.
4444
*
4545
* @param array $array An array of key/value pairs to be flipped.
46-
* @return array Returns the flipped array on success and NULL on failure.
46+
* @return array Returns the flipped array on success.
4747
* @throws ArrayException
4848
*
4949
*/
@@ -153,7 +153,7 @@ function array_multisort(array &$array1, $array1_sort_order = SORT_ASC, $array1_
153153
*
154154
* @param array $array1 The array in which elements are replaced.
155155
* @param array $params Optional. Arrays from which elements will be extracted.
156-
* @return array|null Returns an array, or NULL if an error occurs.
156+
* @return array Returns an array.
157157
* @throws ArrayException
158158
*
159159
*/
@@ -188,7 +188,7 @@ function array_replace_recursive(array $array1, array ...$params): array
188188
* @param array $array1 The array in which elements are replaced.
189189
* @param array $params Arrays from which elements will be extracted.
190190
* Values from later arrays overwrite the previous values.
191-
* @return array|null Returns an array, or NULL if an error occurs.
191+
* @return array Returns an array.
192192
* @throws ArrayException
193193
*
194194
*/

generated/gmp.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,12 @@ function gmp_import(string $data, int $word_size = 1, int $options = GMP_MSW_FIR
7878
* @throws GmpException
7979
*
8080
*/
81-
function gmp_random_seed($seed): void
81+
function gmp_random_seed($seed): \GMP
8282
{
8383
error_clear_last();
8484
$result = \gmp_random_seed($seed);
8585
if ($result === false) {
8686
throw GmpException::createFromPhpError();
8787
}
88+
return $result;
8889
}

generated/image.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,13 +434,14 @@ function imagecolormatch($image1, $image2): void
434434
* @throws ImageException
435435
*
436436
*/
437-
function imageconvolution($image, array $matrix, float $div, float $offset): void
437+
function imageconvolution($image, array $matrix, float $div, float $offset)
438438
{
439439
error_clear_last();
440440
$result = \imageconvolution($image, $matrix, $div, $offset);
441441
if ($result === false) {
442442
throw ImageException::createFromPhpError();
443443
}
444+
return $result;
444445
}
445446

446447

@@ -2614,7 +2615,6 @@ function imagettfbbox(float $size, float $angle, string $fontfile, string $text)
26142615
* right, upper right, upper left. The points are relative to the text
26152616
* regardless of the angle, so "upper left" means in the top left-hand
26162617
* corner when you see the text horizontally.
2617-
* Returns FALSE on error.
26182618
* @throws ImageException
26192619
*
26202620
*/
@@ -2722,7 +2722,7 @@ function imagexbm($image, ?string $filename = null, int $foreground = null): voi
27222722
* @throws ImageException
27232723
*
27242724
*/
2725-
function iptcembed(string $iptcdata, string $jpeg_file_name, int $spool = 0)
2725+
function iptcembed(string $iptcdata, string $jpeg_file_name, int $spool = 0): array
27262726
{
27272727
error_clear_last();
27282728
$result = \iptcembed($iptcdata, $jpeg_file_name, $spool);

generated/imap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function imap_append($imap_stream, string $mailbox, string $message, string $opt
7171
* @throws ImapException
7272
*
7373
*/
74-
function imap_check($imap_stream): object
74+
function imap_check($imap_stream): \stdClass
7575
{
7676
error_clear_last();
7777
$result = \imap_check($imap_stream);
@@ -419,7 +419,7 @@ function imap_gc($imap_stream, int $caches): void
419419
* @throws ImapException
420420
*
421421
*/
422-
function imap_headerinfo($imap_stream, int $msg_number, int $fromlength = 0, int $subjectlength = 0, string $defaulthost = null): object
422+
function imap_headerinfo($imap_stream, int $msg_number, int $fromlength = 0, int $subjectlength = 0, string $defaulthost = null): \stdClass
423423
{
424424
error_clear_last();
425425
$result = \imap_headerinfo($imap_stream, $msg_number, $fromlength, $subjectlength, $defaulthost);
@@ -581,7 +581,7 @@ function imap_mail(string $to, string $subject, string $message, string $additio
581581
* @throws ImapException
582582
*
583583
*/
584-
function imap_mailboxmsginfo($imap_stream): object
584+
function imap_mailboxmsginfo($imap_stream): \stdClass
585585
{
586586
error_clear_last();
587587
$result = \imap_mailboxmsginfo($imap_stream);

generated/info.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function dl(string $library): void
167167
*
168168
* @return int Returns the time of the last modification of the current
169169
* page. The value returned is a Unix timestamp, suitable for
170-
* feeding to date. Returns FALSE on error.
170+
* feeding to date.
171171
* @throws InfoException
172172
*
173173
*/
@@ -264,7 +264,7 @@ function getmyuid(): int
264264
* @throws InfoException
265265
*
266266
*/
267-
function getopt(string $options, array $longopts = null, ?int &$optind = null): array
267+
function getopt(string $options, array $longopts = null, ?int &$optind = null)
268268
{
269269
error_clear_last();
270270
if ($optind !== null) {

generated/libxml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Retrieve last error from libxml.
99
*
10-
* @return libXMLError Returns a LibXMLError object if there is any error in the
10+
* @return \LibXMLError Returns a LibXMLError object if there is any error in the
1111
* buffer, FALSE otherwise.
1212
* @throws LibxmlException
1313
*

generated/mailparse.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*
2424
* If callbackfunc is set to NULL, returns the
2525
* extracted section as a string.
26-
*
27-
* Returns FALSE on error.
2826
* @throws MailparseException
2927
*
3028
*/

generated/mbstring.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ function mb_eregi_replace(string $pattern, string $replace, string $string, stri
282282
* If encoding is omitted,
283283
* mb_http_output returns the current HTTP output
284284
* character encoding.
285-
* @return string If encoding is omitted,
285+
* @return string|bool If encoding is omitted,
286286
* mb_http_output returns the current HTTP output
287287
* character encoding. Otherwise,
288288
* Returns TRUE on success.
@@ -312,7 +312,7 @@ function mb_http_output(string $encoding = null)
312312
* character encoding conversion, and the default character encoding
313313
* for string functions defined by the mbstring module.
314314
* You should notice that the internal encoding is totally different from the one for multibyte regex.
315-
* @return string If encoding is set, then
315+
* @return string|bool If encoding is set, then
316316
* Returns TRUE on success.
317317
* In this case, the character encoding for multibyte regex is NOT changed.
318318
* If encoding is omitted, then
@@ -388,7 +388,7 @@ function mb_parse_str(string $encoded_string, ?array &$result = null): void
388388
* @param string $encoding The encoding
389389
* parameter is the character encoding. If it is omitted, the internal character
390390
* encoding value will be used.
391-
* @return string
391+
* @return string|bool
392392
* @throws MbstringException
393393
*
394394
*/

generated/misc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function define(string $name, $value, bool $case_insensitive = false): void
5252
* @param string $filename Path to the PHP file to be highlighted.
5353
* @param bool $return Set this parameter to TRUE to make this function return the
5454
* highlighted code.
55-
* @return string If return is set to TRUE, returns the highlighted
55+
* @return string|bool If return is set to TRUE, returns the highlighted
5656
* code as a string instead of printing it out. Otherwise, it will return
5757
* TRUE on success, FALSE on failure.
5858
* @throws MiscException
@@ -75,7 +75,7 @@ function highlight_file(string $filename, bool $return = false)
7575
* @param string $str The PHP code to be highlighted. This should include the opening tag.
7676
* @param bool $return Set this parameter to TRUE to make this function return the
7777
* highlighted code.
78-
* @return string If return is set to TRUE, returns the highlighted
78+
* @return string|bool If return is set to TRUE, returns the highlighted
7979
* code as a string instead of printing it out. Otherwise, it will return
8080
* TRUE on success, FALSE on failure.
8181
* @throws MiscException
@@ -101,7 +101,7 @@ function highlight_string(string $str, bool $return = false)
101101
* Either the codepage name or identifier.
102102
* @param string $subject The string to convert.
103103
* @return string The subject string converted to
104-
* out_codepage, or NULL on failure.
104+
* out_codepage.
105105
* @throws MiscException
106106
*
107107
*/
@@ -195,7 +195,7 @@ function sleep(int $seconds): int
195195
*
196196
* @param int $seconds Must be a non-negative integer.
197197
* @param int $nanoseconds Must be a non-negative integer less than 1 billion.
198-
* @return array{0:int,1:int} Returns TRUE on success.
198+
* @return array{0:int,1:int}|bool Returns TRUE on success.
199199
*
200200
* If the delay was interrupted by a signal, an associative array will be
201201
* returned with the components:

generated/oci8.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,11 +1265,11 @@ function oci_pconnect(string $username, string $password, string $connection_str
12651265
* describes the column as, which is uppercase for columns created
12661266
* case insensitively.
12671267
* @return string Returns everything as strings except for abstract types (ROWIDs, LOBs and
1268-
* FILEs). Returns FALSE on error.
1268+
* FILEs).
12691269
* @throws Oci8Exception
12701270
*
12711271
*/
1272-
function oci_result($statement, $field)
1272+
function oci_result($statement, $field): string
12731273
{
12741274
error_clear_last();
12751275
$result = \oci_result($statement, $field);
@@ -1686,14 +1686,7 @@ function oci_set_prefetch($statement, int $rows): void
16861686
*
16871687
*
16881688
*
1689-
* UNKNOWN
1690-
*
1691-
*
1692-
*
1693-
*
1694-
*
1695-
*
1696-
* Returns FALSE on error.
1689+
* UNKNOW.
16971690
* @throws Oci8Exception
16981691
*
16991692
*/

generated/pgsql.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ function pg_last_error($connection = null): string
688688
* @throws PgsqlException
689689
*
690690
*/
691-
function pg_last_notice($connection, int $option = PGSQL_NOTICE_LAST)
691+
function pg_last_notice($connection, int $option = PGSQL_NOTICE_LAST): string
692692
{
693693
error_clear_last();
694694
$result = \pg_last_notice($connection, $option);
@@ -1485,11 +1485,11 @@ function pg_query($connection = null, string $query = null)
14851485
* PGSQL_DIAG_CONTEXT, PGSQL_DIAG_SOURCE_FILE,
14861486
* PGSQL_DIAG_SOURCE_LINE or
14871487
* PGSQL_DIAG_SOURCE_FUNCTION.
1488-
* @return string|null A string containing the contents of the error field.
1488+
* @return string|null A string containing the contents of the error field, NULL if the field does not exist.
14891489
* @throws PgsqlException
14901490
*
14911491
*/
1492-
function pg_result_error_field($result, int $fieldcode): string
1492+
function pg_result_error_field($result, int $fieldcode): ?string
14931493
{
14941494
error_clear_last();
14951495
$result = \pg_result_error_field($result, $fieldcode);
@@ -1859,8 +1859,7 @@ function pg_update($connection, string $table_name, array $data, array $conditio
18591859
* is used. The default connection is the last connection made by
18601860
* pg_connect or pg_pconnect.
18611861
* @return array Returns an array with client, protocol
1862-
* and server keys and values (if available). Returns
1863-
* FALSE on error or invalid connection.
1862+
* and server keys and values (if available) or invalid connection.
18641863
* @throws PgsqlException
18651864
*
18661865
*/

generated/sockets.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function socket_accept($socket)
5050
* value of this function may be used with socket_listen.
5151
*
5252
* @param resource $addr Resource created from socket_addrinfo_lookup().
53-
* @return resource|null Returns a Socket resource on success or NULL on failure.
53+
* @return resource Returns a Socket resource on success.
5454
* @throws SocketsException
5555
*
5656
*/
@@ -70,7 +70,7 @@ function socket_addrinfo_bind($addr)
7070
* value of this function may be used with the rest of the socket functions.
7171
*
7272
* @param resource $addr Resource created from socket_addrinfo_lookup()
73-
* @return resource|null Returns a Socket resource on success or NULL on failure.
73+
* @return resource Returns a Socket resource on success.
7474
* @throws SocketsException
7575
*
7676
*/
@@ -380,7 +380,7 @@ function socket_getsockname($socket, ?string &$addr, ?int &$port = null): void
380380
* Imports a stream that encapsulates a socket into a socket extension resource.
381381
*
382382
* @param resource $stream The stream resource to import.
383-
* @return resource Returns FALSE or NULL on failure.
383+
* @return resource|false Returns FALSE.
384384
* @throws SocketsException
385385
*
386386
*/

generated/sqlsrv.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ function sqlsrv_get_field($stmt, int $fieldIndex, int $getAsType = null)
276276
* @throws SqlsrvException
277277
*
278278
*/
279-
function sqlsrv_next_result($stmt)
279+
function sqlsrv_next_result($stmt): ?bool
280280
{
281281
error_clear_last();
282282
$result = \sqlsrv_next_result($stmt);
@@ -297,7 +297,7 @@ function sqlsrv_next_result($stmt)
297297
* @throws SqlsrvException
298298
*
299299
*/
300-
function sqlsrv_num_fields($stmt)
300+
function sqlsrv_num_fields($stmt): int
301301
{
302302
error_clear_last();
303303
$result = \sqlsrv_num_fields($stmt);
@@ -325,7 +325,7 @@ function sqlsrv_num_fields($stmt)
325325
* @throws SqlsrvException
326326
*
327327
*/
328-
function sqlsrv_num_rows($stmt)
328+
function sqlsrv_num_rows($stmt): int
329329
{
330330
error_clear_last();
331331
$result = \sqlsrv_num_rows($stmt);

generated/stream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ function stream_socket_client(string $remote_socket, int &$errno = null, string
439439
* @throws StreamException
440440
*
441441
*/
442-
function stream_socket_pair(int $domain, int $type, int $protocol): array
442+
function stream_socket_pair(int $domain, int $type, int $protocol): iterable
443443
{
444444
error_clear_last();
445445
$result = \stream_socket_pair($domain, $type, $protocol);

generated/uodbc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ function odbc_longreadlen($result_id, int $length): void
596596
* see odbc_connect for details.
597597
* @param string $query_string The query string statement being prepared.
598598
* @return resource Returns an ODBC result identifier if the SQL command was prepared
599-
* successfully. Returns FALSE on error.
599+
* successfully.
600600
* @throws UodbcException
601601
*
602602
*/

generated/xmlrpc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Sets xmlrpc type, base64 or datetime, for a PHP string value.
99
*
10-
* @param string|DateTime $value Value to set the type
10+
* @param string|\DateTime $value Value to set the type
1111
* @param string $type 'base64' or 'datetime'
1212
* @throws XmlrpcException
1313
*

0 commit comments

Comments
 (0)