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

0 commit comments

Comments
 (0)