Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions generated/apache.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ function apache_lookup_uri(string $filename): object

/**
* Fetches all HTTP request headers from the current request. Works in the
* Apache, FastCGI, CLI, FPM and NSAPI server module
* in Netscape/iPlanet/SunONE webservers.
* Apache, FastCGI, CLI, and FPM webservers.
*
* @return array An associative array of all the HTTP headers in the current request.
* @throws ApacheException
Expand Down Expand Up @@ -135,8 +134,7 @@ function apache_reset_timeout(): void

/**
* Fetch all HTTP response headers. Works in the
* Apache, FastCGI, CLI, FPM and NSAPI server module
* in Netscape/iPlanet/SunONE webservers.
* Apache, FastCGI, CLI, and FPM webservers.
*
* @return array An array of all Apache response headers on success.
* @throws ApacheException
Expand Down
4 changes: 2 additions & 2 deletions generated/curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -3089,7 +3089,7 @@ function curl_share_errno($share_handle): int
*
*
*
* @param string $value
* @param mixed $value
*
*
*
Expand Down Expand Up @@ -3126,7 +3126,7 @@ function curl_share_errno($share_handle): int
* @throws CurlException
*
*/
function curl_share_setopt($share_handle, int $option, string $value): void
function curl_share_setopt($share_handle, int $option, $value): void
{
error_clear_last();
$result = \curl_share_setopt($share_handle, $option, $value);
Expand Down
8 changes: 4 additions & 4 deletions generated/datetime.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ function date_sun_info(int $timestamp, float $latitude, float $longitude): array
* @throws DatetimeException
*
*/
function date_sunrise(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, float $latitude = null, float $longitude = null, float $zenith = null, float $utcOffset = 0)
function date_sunrise(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, float $latitude = null, float $longitude = null, float $zenith = null, float $utcOffset = null)
{
error_clear_last();
if ($utcOffset !== 0) {
if ($utcOffset !== null) {
$result = \date_sunrise($timestamp, $returnFormat, $latitude, $longitude, $zenith, $utcOffset);
} elseif ($zenith !== null) {
$result = \date_sunrise($timestamp, $returnFormat, $latitude, $longitude, $zenith);
Expand Down Expand Up @@ -336,10 +336,10 @@ function date_sunrise(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, f
* @throws DatetimeException
*
*/
function date_sunset(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, float $latitude = null, float $longitude = null, float $zenith = null, float $utcOffset = 0)
function date_sunset(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, float $latitude = null, float $longitude = null, float $zenith = null, float $utcOffset = null)
{
error_clear_last();
if ($utcOffset !== 0) {
if ($utcOffset !== null) {
$result = \date_sunset($timestamp, $returnFormat, $latitude, $longitude, $zenith, $utcOffset);
} elseif ($zenith !== null) {
$result = \date_sunset($timestamp, $returnFormat, $latitude, $longitude, $zenith);
Expand Down
4 changes: 3 additions & 1 deletion generated/dir.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,11 @@ function opendir(string $path, $context = null)
* with opendir. If the directory handle is
* not specified, the last link opened by opendir
* is assumed.
* @return null Returns NULL on success.
* @throws DirException
*
*/
function rewinddir($dir_handle = null): void
function rewinddir($dir_handle = null)
{
error_clear_last();
if ($dir_handle !== null) {
Expand All @@ -120,6 +121,7 @@ function rewinddir($dir_handle = null): void
if ($result === false) {
throw DirException::createFromPhpError();
}
return $result;
}


Expand Down
2 changes: 1 addition & 1 deletion generated/exec.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function exec(string $command, ?array &$output = null, ?int &$result_code = null
*
* @param resource $process The proc_open resource that will
* be evaluated.
* @return array An array of collected information on success. The returned array contains the following elements:
* @return array{command: string, pid: int, running: bool, signaled: bool, stopped: bool, exitcode: int, termsig: int, stopsig: int} An array of collected information on success. The returned array contains the following elements:
*
*
*
Expand Down
4 changes: 2 additions & 2 deletions generated/fileinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ function finfo_open(int $flags = FILEINFO_NONE, string $magic_database = "")
* Returns the MIME content type for a file as determined by using
* information from the magic.mime file.
*
* @param string $filename Path to the tested file.
* @param string|resource $filename Path to the tested file.
* @return string Returns the content type in MIME format, like
* text/plain or application/octet-stream.
* @throws FileinfoException
*
*/
function mime_content_type(string $filename): string
function mime_content_type($filename): string
{
error_clear_last();
$result = \mime_content_type($filename);
Expand Down
8 changes: 4 additions & 4 deletions generated/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* This parameter can be also an integer holding a filter constant. Then all values in the
* input array are filtered by this filter.
* @param bool $add_empty Add missing keys as NULL to the return value.
* @return mixed An array containing the values of the requested variables on success.
* @return array|null An array containing the values of the requested variables on success.
* If the input array designated by type is not populated,
* the function returns NULL if the FILTER_NULL_ON_FAILURE
* flag is not given, or FALSE otherwise. For other failures, FALSE is returned.
Expand All @@ -36,7 +36,7 @@
* @throws FilterException
*
*/
function filter_input_array(int $type, $options = FILTER_DEFAULT, bool $add_empty = true)
function filter_input_array(int $type, $options = FILTER_DEFAULT, bool $add_empty = true): ?array
{
error_clear_last();
$result = \filter_input_array($type, $options, $add_empty);
Expand Down Expand Up @@ -65,12 +65,12 @@ function filter_input_array(int $type, $options = FILTER_DEFAULT, bool $add_empt
* This parameter can be also an integer holding a filter constant. Then all values in the
* input array are filtered by this filter.
* @param bool $add_empty Add missing keys as NULL to the return value.
* @return mixed An array containing the values of the requested variables on success. An array value will be FALSE if the filter fails, or NULL if
* @return array|null An array containing the values of the requested variables on success. An array value will be FALSE if the filter fails, or NULL if
* the variable is not set.
* @throws FilterException
*
*/
function filter_var_array(array $array, $options = FILTER_DEFAULT, bool $add_empty = true)
function filter_var_array(array $array, $options = FILTER_DEFAULT, bool $add_empty = true): ?array
{
error_clear_last();
$result = \filter_var_array($array, $options, $add_empty);
Expand Down
Loading