Skip to content

Commit ba919ef

Browse files
committed
regenerated
1 parent aa5d1cf commit ba919ef

18 files changed

+35
-49
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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ function gmp_import(string $data, int $word_size = 1, int $options = GMP_MSW_FIR
7474
* gmp_random_range functions.
7575
*
7676
* Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number.
77-
* @return \GMP Returns NULL on success.
7877
* @throws GmpException
7978
*
8079
*/

generated/image.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ function imagecolormatch($image1, $image2): void
430430
* @param array $matrix A 3x3 matrix: an array of three arrays of three floats.
431431
* @param float $div The divisor of the result of the convolution, used for normalization.
432432
* @param float $offset Color offset.
433-
* @return resource Returns TRUE on success.
434433
* @throws ImageException
435434
*
436435
*/
@@ -2614,7 +2613,6 @@ function imagettfbbox(float $size, float $angle, string $fontfile, string $text)
26142613
* right, upper right, upper left. The points are relative to the text
26152614
* regardless of the angle, so "upper left" means in the top left-hand
26162615
* corner when you see the text horizontally.
2617-
* Returns FALSE on error.
26182616
* @throws ImageException
26192617
*
26202618
*/
@@ -2718,7 +2716,7 @@ function imagexbm($image, ?string $filename = null, int $foreground = null): voi
27182716
* @param string $jpeg_file_name Path to the JPEG image.
27192717
* @param int $spool Spool flag. If the spool flag is less than 2 then the JPEG will be
27202718
* returned as a string. Otherwise the JPEG will be printed to STDOUT.
2721-
* @return array If spool is less than 2, the JPEG will be returned. Otherwise returns TRUE on success.
2719+
* @return string|bool If spool is less than 2, the JPEG will be returned. Otherwise returns TRUE on success.
27222720
* @throws ImageException
27232721
*
27242722
*/

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: 1 addition & 1 deletion
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
*/

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
*/

0 commit comments

Comments
 (0)