Skip to content

Commit

Permalink
Regenerate files
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoulquie-tnw committed Apr 13, 2022
1 parent 3fe2b75 commit 5e3e492
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 43 deletions.
2 changes: 1 addition & 1 deletion generated/apcu.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @param bool $limited If limited is TRUE, the
* return value will exclude the individual list of cache entries. This
* is useful when trying to optimize calls for statistics gathering.
* @return array Array of cached data (and meta-data)
* @return \array Array of cached data (and meta-data)
* @throws ApcuException
*
*/
Expand Down
24 changes: 0 additions & 24 deletions generated/array.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,6 @@

use Safe\Exceptions\ArrayException;

/**
* Creates an array by using the values from the
* keys array as keys and the values from the
* values array as the corresponding values.
*
* @param \array $keys Array of keys to be used. Illegal values for key will be
* converted to string.
* @param \array $values Array of values to be used
* @return \array Returns the combined array, FALSE if the number of elements
* for each array isn't equal.
* @throws ArrayException
*
*/
function array_combine(array $keys, array $values): array
{
error_clear_last();
$result = \array_combine($keys, $values);
if ($result === false) {
throw ArrayException::createFromPhpError();
}
return $result;
}


/**
* array_replace_recursive replaces the values of
* array with the same values from all the following
Expand Down
4 changes: 2 additions & 2 deletions generated/datetime.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @param string $format Format accepted by DateTime::createFromFormat.
* @param string $datetime String representing the date/time.
* @return \array{year: int|false, month: int|false, day: int|false, hour: int|false, minute: int|false, second: int|false, fraction: float|false, warning_count: int, warnings: string[], error_count: int, errors: string[], is_localtime: bool, zone_type: int|bool, zone: int|bool, is_dst: bool, tz_abbr: string, tz_id: string, relative: array{year: int, month: int, day: int, hour: int, minute: int, second: int, weekday: int, weekdays: int, first_day_of_month: bool, last_day_of_month: bool}}|null Returns associative array with detailed info about given date/time.
* @return \array{year: int|false, month: int|false, day: int|false, hour: int|false, minute: int|false, second: int|false, fraction: float|false, warning_count: int, warnings: string[], error_count: int, errors: string[], is_localtime: bool, zone_type: int|bool, zone: int|bool, is_dst: bool, tz_abbr: string, tz_id: string, relative: \array{year: int, month: int, day: int, hour: int, minute: int, second: int, weekday: int, weekdays: int, first_day_of_month: bool, last_day_of_month: bool}}|null Returns associative array with detailed info about given date/time.
* @throws DatetimeException
*
*/
Expand All @@ -29,7 +29,7 @@ function date_parse_from_format(string $format, string $datetime): ?array
*
* @param string $datetime Date/time in format accepted by
* DateTimeImmutable::__construct.
* @return \array{year: int|false, month: int|false, day: int|false, hour: int|false, minute: int|false, second: int|false, fraction: float|false, warning_count: int, warnings: string[], error_count: int, errors: string[], is_localtime: bool, zone_type: int|bool, zone: int|bool, is_dst: bool, tz_abbr: string, tz_id: string, relative: array{year: int, month: int, day: int, hour: int, minute: int, second: int, weekday: int, weekdays: int, first_day_of_month: bool, last_day_of_month: bool}}|null Returns array with information about the parsed date/time
* @return \array{year: int|false, month: int|false, day: int|false, hour: int|false, minute: int|false, second: int|false, fraction: float|false, warning_count: int, warnings: string[], error_count: int, errors: string[], is_localtime: bool, zone_type: int|bool, zone: int|bool, is_dst: bool, tz_abbr: string, tz_id: string, relative: \array{year: int, month: int, day: int, hour: int, minute: int, second: int, weekday: int, weekdays: int, first_day_of_month: bool, last_day_of_month: bool}}|null Returns array with information about the parsed date/time
* on success.
* @throws DatetimeException
*
Expand Down
2 changes: 1 addition & 1 deletion generated/dir.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function opendir(string $directory, $context = null)
* @param resource $context For a description of the context parameter,
* refer to the streams section of
* the manual.
* @return array Returns an array of filenames on success. If directory is not a directory, then
* @return \array Returns an array of filenames on success. If directory is not a directory, then
* boolean FALSE is returned, and an error of level
* E_WARNING is generated.
* @throws DirException
Expand Down
4 changes: 2 additions & 2 deletions generated/filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ function file_put_contents(string $filename, $data, int $flags = 0, $context = n
*
*
* @param resource $context
* @return array Returns the file in an array. Each element of the array corresponds to a
* @return \array Returns the file in an array. Each element of the array corresponds to a
* line in the file, with the newline still attached. Upon failure,
* file returns FALSE.
* @throws FilesystemException
Expand Down Expand Up @@ -1131,7 +1131,7 @@ function fwrite($stream, string $data, int $length = null): int
* systems, like Solaris or Alpine Linux.
*
*
* @return array Returns an array containing the matched files/directories, an empty array
* @return \array Returns an array containing the matched files/directories, an empty array
* if no file matched.
* @throws FilesystemException
*
Expand Down
1 change: 0 additions & 1 deletion generated/functionsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
'apcu_inc',
'apcu_sma_info',
'apc_fetch',
'array_combine',
'array_replace',
'array_replace_recursive',
'array_walk_recursive',
Expand Down
4 changes: 2 additions & 2 deletions generated/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function imageaffine($image, array $affine, array $clip = null)
* 0 to 5 and float values).
* @param \array $matrix2 An affine transformation matrix (an array with keys
* 0 to 5 and float values).
* @return array{0:float,1:float,2:float,3:float,4:float,5:float} An affine transformation matrix (an array with keys
* @return \array{0:float,1:float,2:float,3:float,4:float,5:float} An affine transformation matrix (an array with keys
* 0 to 5 and float values).
* @throws ImageException
*
Expand Down Expand Up @@ -191,7 +191,7 @@ function imageaffinematrixconcat(array $matrix1, array $matrix2): array
* If type is IMG_AFFINE_ROTATE,
* IMG_AFFINE_SHEAR_HORIZONTAL or IMG_AFFINE_SHEAR_VERTICAL,
* options has to be a float specifying the angle.
* @return array{0:float,1:float,2:float,3:float,4:float,5:float} An affine transformation matrix (an array with keys
* @return \array{0:float,1:float,2:float,3:float,4:float,5:float} An affine transformation matrix (an array with keys
* 0 to 5 and float values).
* @throws ImageException
*
Expand Down
4 changes: 2 additions & 2 deletions generated/mbstring.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function mb_chr(int $codepoint, string $encoding = null): string
* If string is an array, all its string values will be
* converted recursively.
*
* @param string|array $string The string or array to be converted.
* @param string|\array $string The string or array to be converted.
* @param string $to_encoding The desired encoding of the result.
* @param mixed $from_encoding The current encoding used to interpret string.
* Multiple encodings may be specified as an array or comma separated
Expand All @@ -54,7 +54,7 @@ function mb_chr(int $codepoint, string $encoding = null): string
* See supported encodings
* for valid values of to_encoding
* and from_encoding.
* @return string|array The encoded string or array on success.
* @return string|\array The encoded string or array on success.
* @throws MbstringException
*
*/
Expand Down
4 changes: 2 additions & 2 deletions generated/misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function highlight_string(string $string, bool $return = false)
*
* @param bool $as_number Whether the high resolution time should be returned as array
* or number.
* @return array{0:int,1:int}|int|float Returns an array of integers in the form [seconds, nanoseconds], if the
* @return \array{0:int,1:int}|int|float Returns an array of integers in the form [seconds, nanoseconds], if the
* parameter as_number is false. Otherwise the nanoseconds
* are returned as int (64bit platforms) or float
* (32bit platforms).
Expand Down Expand Up @@ -450,7 +450,7 @@ function sleep(int $seconds): int
*
* @param int $seconds Must be a non-negative integer.
* @param int $nanoseconds Must be a non-negative integer less than 1 billion.
* @return array{0:0|positive-int,1:0|positive-int}|bool Returns TRUE on success.
* @return \array{0:0|positive-int,1:0|positive-int}|bool Returns TRUE on success.
*
* If the delay was interrupted by a signal, an associative array will be
* returned with the components:
Expand Down
2 changes: 1 addition & 1 deletion generated/openssl.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ function openssl_digest(string $data, string $digest_algo, bool $binary = false)
* NIST
* recommends using ECC curves with at least 256 bits.
*
* @return array An array of available curve names.
* @return \array An array of available curve names.
* @throws OpensslException
*
*/
Expand Down
2 changes: 1 addition & 1 deletion generated/pcre.php
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ function preg_match(string $pattern, string $subject, ?iterable &$matches = null
* value in an array where every element is an array consisting of the
* matched string at offset 0 and its string offset
* into subject at offset 1.
* @return array Returns an array containing substrings of subject
* @return \array Returns an array containing substrings of subject
* split along boundaries matched by pattern.
* @throws PcreException
*
Expand Down
6 changes: 3 additions & 3 deletions generated/spl.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @param object|string $object_or_class An object (class instance) or a string (class or interface name).
* @param bool $autoload Whether to call __autoload by default.
* @return array An array on success, or FALSE when the given class doesn't exist.
* @return \array An array on success, or FALSE when the given class doesn't exist.
* @throws SplException
*
*/
Expand All @@ -31,7 +31,7 @@ function class_implements($object_or_class, bool $autoload = true): array
*
* @param object|string $object_or_class An object (class instance) or a string (class name).
* @param bool $autoload Whether to call __autoload by default.
* @return array An array on success, or FALSE when the given class doesn't exist.
* @return \array An array on success, or FALSE when the given class doesn't exist.
* @throws SplException
*
*/
Expand All @@ -53,7 +53,7 @@ function class_parents($object_or_class, bool $autoload = true): array
*
* @param object|string $object_or_class An object (class instance) or a string (class name).
* @param bool $autoload Whether to call __autoload by default.
* @return array An array on success, or FALSE when the given class doesn't exist.
* @return \array An array on success, or FALSE when the given class doesn't exist.
* @throws SplException
*
*/
Expand Down
1 change: 0 additions & 1 deletion rector-migrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
'apcu_inc' => 'Safe\apcu_inc',
'apcu_sma_info' => 'Safe\apcu_sma_info',
'apc_fetch' => 'Safe\apc_fetch',
'array_combine' => 'Safe\array_combine',
'array_replace' => 'Safe\array_replace',
'array_replace_recursive' => 'Safe\array_replace_recursive',
'array_walk_recursive' => 'Safe\array_walk_recursive',
Expand Down

0 comments on commit 5e3e492

Please # to comment.