Skip to content

Commit 4b2e823

Browse files
authored
Automatically regenerate the files
1 parent 8a6dc46 commit 4b2e823

File tree

5 files changed

+72
-69
lines changed

5 files changed

+72
-69
lines changed

generated/datetime.php

Lines changed: 54 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
use Safe\Exceptions\DatetimeException;
66

77
/**
8-
* Returns associative array with detailed info about given date.
8+
* Returns associative array with detailed info about given date/time.
99
*
1010
* @param string $format Format accepted by DateTime::createFromFormat.
11-
* @param string $date String representing the date.
12-
* @return array Returns associative array with detailed info about given date.
11+
* @param string $datetime String representing the date/time.
12+
* @return array Returns associative array with detailed info about given date/time.
1313
* @throws DatetimeException
1414
*
1515
*/
16-
function date_parse_from_format(string $format, string $date): array
16+
function date_parse_from_format(string $format, string $datetime): array
1717
{
1818
error_clear_last();
19-
$result = \date_parse_from_format($format, $date);
19+
$result = \date_parse_from_format($format, $datetime);
2020
if ($result === false) {
2121
throw DatetimeException::createFromPhpError();
2222
}
@@ -27,16 +27,17 @@ function date_parse_from_format(string $format, string $date): array
2727
/**
2828
*
2929
*
30-
* @param string $date Date in format accepted by strtotime.
31-
* @return array Returns array with information about the parsed date
30+
* @param string $datetime Date/time in format accepted by
31+
* DateTimeImmutable::__construct.
32+
* @return array Returns array with information about the parsed date/time
3233
* on success.
3334
* @throws DatetimeException
3435
*
3536
*/
36-
function date_parse(string $date): array
37+
function date_parse(string $datetime): array
3738
{
3839
error_clear_last();
39-
$result = \date_parse($date);
40+
$result = \date_parse($datetime);
4041
if ($result === false) {
4142
throw DatetimeException::createFromPhpError();
4243
}
@@ -47,7 +48,7 @@ function date_parse(string $date): array
4748
/**
4849
*
4950
*
50-
* @param int $time Timestamp.
51+
* @param int $timestamp Unix timestamp.
5152
* @param float $latitude Latitude in degrees.
5253
* @param float $longitude Longitude in degrees.
5354
* @return array Returns array on success.
@@ -58,23 +59,23 @@ function date_parse(string $date): array
5859
* sunrise
5960
*
6061
*
61-
* The time of the sunrise (zenith angle = 90°35').
62+
* The timestamp of the sunrise (zenith angle = 90°35').
6263
*
6364
*
6465
*
6566
*
6667
* sunset
6768
*
6869
*
69-
* The time of the sunset (zenith angle = 90°35').
70+
* The timestamp of the sunset (zenith angle = 90°35').
7071
*
7172
*
7273
*
7374
*
7475
* transit
7576
*
7677
*
77-
* The time when the sun is at its zenith, i.e. has reached its topmost
78+
* The timestamp when the sun is at its zenith, i.e. has reached its topmost
7879
* point.
7980
*
8081
*
@@ -139,10 +140,10 @@ function date_parse(string $date): array
139140
* @throws DatetimeException
140141
*
141142
*/
142-
function date_sun_info(int $time, float $latitude, float $longitude): array
143+
function date_sun_info(int $timestamp, float $latitude, float $longitude): array
143144
{
144145
error_clear_last();
145-
$result = \date_sun_info($time, $latitude, $longitude);
146+
$result = \date_sun_info($timestamp, $latitude, $longitude);
146147
if ($result === false) {
147148
throw DatetimeException::createFromPhpError();
148149
}
@@ -156,8 +157,8 @@ function date_sun_info(int $time, float $latitude, float $longitude): array
156157
*
157158
* @param int $timestamp The timestamp of the day from which the sunrise
158159
* time is taken.
159-
* @param int $format
160-
* format constants
160+
* @param int $returnFormat
161+
* returnFormat constants
161162
*
162163
*
163164
*
@@ -221,30 +222,30 @@ function date_sun_info(int $time, float $latitude, float $longitude): array
221222
*
222223
*
223224
*
224-
* @param float $gmt_offset Specified in hours.
225-
* The gmtoffset is ignored, if
226-
* format is
225+
* @param float $utcOffset Specified in hours.
226+
* The utcOffset is ignored, if
227+
* returnFormat is
227228
* SUNFUNCS_RET_TIMESTAMP.
228-
* @return mixed Returns the sunrise time in a specified format on
229+
* @return mixed Returns the sunrise time in a specified returnFormat on
229230
* success. One potential reason for failure is that the
230231
* sun does not rise at all, which happens inside the polar circles for part of
231232
* the year.
232233
* @throws DatetimeException
233234
*
234235
*/
235-
function date_sunrise(int $timestamp, int $format = SUNFUNCS_RET_STRING, float $latitude = null, float $longitude = null, float $zenith = null, float $gmt_offset = 0)
236+
function date_sunrise(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, float $latitude = null, float $longitude = null, float $zenith = null, float $utcOffset = 0)
236237
{
237238
error_clear_last();
238-
if ($gmt_offset !== 0) {
239-
$result = \date_sunrise($timestamp, $format, $latitude, $longitude, $zenith, $gmt_offset);
239+
if ($utcOffset !== 0) {
240+
$result = \date_sunrise($timestamp, $returnFormat, $latitude, $longitude, $zenith, $utcOffset);
240241
} elseif ($zenith !== null) {
241-
$result = \date_sunrise($timestamp, $format, $latitude, $longitude, $zenith);
242+
$result = \date_sunrise($timestamp, $returnFormat, $latitude, $longitude, $zenith);
242243
} elseif ($longitude !== null) {
243-
$result = \date_sunrise($timestamp, $format, $latitude, $longitude);
244+
$result = \date_sunrise($timestamp, $returnFormat, $latitude, $longitude);
244245
} elseif ($latitude !== null) {
245-
$result = \date_sunrise($timestamp, $format, $latitude);
246+
$result = \date_sunrise($timestamp, $returnFormat, $latitude);
246247
} else {
247-
$result = \date_sunrise($timestamp, $format);
248+
$result = \date_sunrise($timestamp, $returnFormat);
248249
}
249250
if ($result === false) {
250251
throw DatetimeException::createFromPhpError();
@@ -259,8 +260,8 @@ function date_sunrise(int $timestamp, int $format = SUNFUNCS_RET_STRING, float $
259260
*
260261
* @param int $timestamp The timestamp of the day from which the sunset
261262
* time is taken.
262-
* @param int $format
263-
* format constants
263+
* @param int $returnFormat
264+
* returnFormat constants
264265
*
265266
*
266267
*
@@ -324,30 +325,30 @@ function date_sunrise(int $timestamp, int $format = SUNFUNCS_RET_STRING, float $
324325
*
325326
*
326327
*
327-
* @param float $gmt_offset Specified in hours.
328-
* The gmtoffset is ignored, if
329-
* format is
328+
* @param float $utcOffset Specified in hours.
329+
* The utcOffset is ignored, if
330+
* returnFormat is
330331
* SUNFUNCS_RET_TIMESTAMP.
331-
* @return mixed Returns the sunset time in a specified format on
332+
* @return mixed Returns the sunset time in a specified returnFormat on
332333
* success. One potential reason for failure is that the
333334
* sun does not set at all, which happens inside the polar circles for part of
334335
* the year.
335336
* @throws DatetimeException
336337
*
337338
*/
338-
function date_sunset(int $timestamp, int $format = SUNFUNCS_RET_STRING, float $latitude = null, float $longitude = null, float $zenith = null, float $gmt_offset = 0)
339+
function date_sunset(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, float $latitude = null, float $longitude = null, float $zenith = null, float $utcOffset = 0)
339340
{
340341
error_clear_last();
341-
if ($gmt_offset !== 0) {
342-
$result = \date_sunset($timestamp, $format, $latitude, $longitude, $zenith, $gmt_offset);
342+
if ($utcOffset !== 0) {
343+
$result = \date_sunset($timestamp, $returnFormat, $latitude, $longitude, $zenith, $utcOffset);
343344
} elseif ($zenith !== null) {
344-
$result = \date_sunset($timestamp, $format, $latitude, $longitude, $zenith);
345+
$result = \date_sunset($timestamp, $returnFormat, $latitude, $longitude, $zenith);
345346
} elseif ($longitude !== null) {
346-
$result = \date_sunset($timestamp, $format, $latitude, $longitude);
347+
$result = \date_sunset($timestamp, $returnFormat, $latitude, $longitude);
347348
} elseif ($latitude !== null) {
348-
$result = \date_sunset($timestamp, $format, $latitude);
349+
$result = \date_sunset($timestamp, $returnFormat, $latitude);
349350
} else {
350-
$result = \date_sunset($timestamp, $format);
351+
$result = \date_sunset($timestamp, $returnFormat);
351352
}
352353
if ($result === false) {
353354
throw DatetimeException::createFromPhpError();
@@ -512,21 +513,21 @@ function strptime(string $date, string $format): array
512513
* See date_default_timezone_get on the various
513514
* ways to define the default time zone.
514515
*
515-
* @param string $time A date/time string. Valid formats are explained in Date and Time Formats.
516+
* @param string $datetime A date/time string. Valid formats are explained in Date and Time Formats.
516517
* @param int $now The timestamp which is used as a base for the calculation of relative
517518
* dates.
518519
* @return int Returns a timestamp on success, FALSE otherwise. Previous to PHP 5.1.0,
519520
* this function would return -1 on failure.
520521
* @throws DatetimeException
521522
*
522523
*/
523-
function strtotime(string $time, int $now = null): int
524+
function strtotime(string $datetime, int $now = null): int
524525
{
525526
error_clear_last();
526527
if ($now !== null) {
527-
$result = \strtotime($time, $now);
528+
$result = \strtotime($datetime, $now);
528529
} else {
529-
$result = \strtotime($time);
530+
$result = \strtotime($datetime);
530531
}
531532
if ($result === false) {
532533
throw DatetimeException::createFromPhpError();
@@ -539,27 +540,27 @@ function strtotime(string $time, int $now = null): int
539540
*
540541
*
541542
* @param string $abbr Time zone abbreviation.
542-
* @param int $gmtOffset Offset from GMT in seconds. Defaults to -1 which means that first found
543+
* @param int $utcOffset Offset from GMT in seconds. Defaults to -1 which means that first found
543544
* time zone corresponding to abbr is returned.
544545
* Otherwise exact offset is searched and only if not found then the first
545546
* time zone with any offset is returned.
546-
* @param int $isdst Daylight saving time indicator. Defaults to -1, which means that
547+
* @param int $isDST Daylight saving time indicator. Defaults to -1, which means that
547548
* whether the time zone has daylight saving or not is not taken into
548549
* consideration when searching. If this is set to 1, then the
549-
* gmtOffset is assumed to be an offset with
550-
* daylight saving in effect; if 0, then gmtOffset
550+
* utcOffset is assumed to be an offset with
551+
* daylight saving in effect; if 0, then utcOffset
551552
* is assumed to be an offset without daylight saving in effect. If
552553
* abbr doesn't exist then the time zone is
553-
* searched solely by the gmtOffset and
554-
* isdst.
554+
* searched solely by the utcOffset and
555+
* isDST.
555556
* @return string Returns time zone name on success.
556557
* @throws DatetimeException
557558
*
558559
*/
559-
function timezone_name_from_abbr(string $abbr, int $gmtOffset = -1, int $isdst = -1): string
560+
function timezone_name_from_abbr(string $abbr, int $utcOffset = -1, int $isDST = -1): string
560561
{
561562
error_clear_last();
562-
$result = \timezone_name_from_abbr($abbr, $gmtOffset, $isdst);
563+
$result = \timezone_name_from_abbr($abbr, $utcOffset, $isDST);
563564
if ($result === false) {
564565
throw DatetimeException::createFromPhpError();
565566
}

generated/filesystem.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ function filesize(string $filename): int
563563
*
564564
*
565565
* It is also possible to add LOCK_NB as a bitmask to one
566-
* of the above operations if you don't want flock to
567-
* block while locking.
566+
* of the above operations, if flock should not
567+
* block during the locking attempt.
568568
* @param int|null $wouldblock The optional third argument is set to 1 if the lock would block
569569
* (EWOULDBLOCK errno condition).
570570
* @throws FilesystemException
@@ -975,7 +975,7 @@ function fwrite($handle, string $string, int $length = null): int
975975
*
976976
*
977977
*
978-
* GLOB_MARK - Adds a slash to each directory returned
978+
* GLOB_MARK - Adds a slash (a backslash on Windows) to each directory returned
979979
*
980980
*
981981
*

generated/image.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ function imagecolordeallocate($image, int $color): void
405405
/**
406406
* Makes the colors of the palette version of an image more closely match the true color version.
407407
*
408-
* @param resource $image1 A truecolor image link resource.
409-
* @param resource $image2 A palette image link resource pointing to an image that has the same
408+
* @param resource $image1 A truecolor image resource.
409+
* @param resource $image2 A palette image resource pointing to an image that has the same
410410
* size as image1.
411411
* @throws ImageException
412412
*
@@ -452,8 +452,8 @@ function imageconvolution($image, array $matrix, float $div, float $offset): voi
452452
* onto the x,y coordinates, dst_x and
453453
* dst_y.
454454
*
455-
* @param resource $dst_im Destination image link resource.
456-
* @param resource $src_im Source image link resource.
455+
* @param resource $dst_im Destination image resource.
456+
* @param resource $src_im Source image resource.
457457
* @param int $dst_x x-coordinate of destination point.
458458
* @param int $dst_y y-coordinate of destination point.
459459
* @param int $src_x x-coordinate of source point.
@@ -482,8 +482,8 @@ function imagecopy($dst_im, $src_im, int $dst_x, int $dst_y, int $src_x, int $sr
482482
* onto the x,y coordinates, dst_x and
483483
* dst_y.
484484
*
485-
* @param resource $dst_im Destination image link resource.
486-
* @param resource $src_im Source image link resource.
485+
* @param resource $dst_im Destination image resource.
486+
* @param resource $src_im Source image resource.
487487
* @param int $dst_x x-coordinate of destination point.
488488
* @param int $dst_y y-coordinate of destination point.
489489
* @param int $src_x x-coordinate of source point.
@@ -522,8 +522,8 @@ function imagecopymerge($dst_im, $src_im, int $dst_x, int $dst_y, int $src_x, in
522522
* that when merging it preserves the hue of the source by converting
523523
* the destination pixels to gray scale before the copy operation.
524524
*
525-
* @param resource $dst_im Destination image link resource.
526-
* @param resource $src_im Source image link resource.
525+
* @param resource $dst_im Destination image resource.
526+
* @param resource $src_im Source image resource.
527527
* @param int $dst_x x-coordinate of destination point.
528528
* @param int $dst_y y-coordinate of destination point.
529529
* @param int $src_x x-coordinate of source point.
@@ -571,8 +571,8 @@ function imagecopymergegray($dst_im, $src_im, int $dst_x, int $dst_y, int $src_x
571571
* src_image) but if the regions overlap the
572572
* results will be unpredictable.
573573
*
574-
* @param resource $dst_image Destination image link resource.
575-
* @param resource $src_image Source image link resource.
574+
* @param resource $dst_image Destination image resource.
575+
* @param resource $src_image Source image resource.
576576
* @param int $dst_x x-coordinate of destination point.
577577
* @param int $dst_y y-coordinate of destination point.
578578
* @param int $src_x x-coordinate of source point.
@@ -616,8 +616,8 @@ function imagecopyresampled($dst_image, $src_image, int $dst_x, int $dst_y, int
616616
* src_image) but if the regions overlap the
617617
* results will be unpredictable.
618618
*
619-
* @param resource $dst_image Destination image link resource.
620-
* @param resource $src_image Source image link resource.
619+
* @param resource $dst_image Destination image resource.
620+
* @param resource $src_image Source image resource.
621621
* @param int $dst_x x-coordinate of destination point.
622622
* @param int $dst_y y-coordinate of destination point.
623623
* @param int $src_x x-coordinate of source point.

generated/mbstring.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ function mb_ord(string $str, string $encoding = null): int
372372
* @throws MbstringException
373373
*
374374
*/
375-
function mb_parse_str(string $encoded_string, ?array &$result = null): void
375+
function mb_parse_str(string $encoded_string, ?array &$result): void
376376
{
377377
error_clear_last();
378378
$result = \mb_parse_str($encoded_string, $result);

generated/outcontrol.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ function ob_end_flush(): void
6565
* url_rewriter.hosts php.ini
6666
* parameters.
6767
*
68+
* Note that this function can be successfully called at most once per request.
69+
*
6870
* @param string $name The variable name.
6971
* @param string $value The variable value.
7072
* @throws OutcontrolException

0 commit comments

Comments
 (0)