From 5e3e49258d5d44101e8b1073284c1c7c216226f3 Mon Sep 17 00:00:00 2001 From: Julio Foulquie Date: Wed, 13 Apr 2022 19:05:19 -0300 Subject: [PATCH] Regenerate files --- generated/apcu.php | 2 +- generated/array.php | 24 ------------------------ generated/datetime.php | 4 ++-- generated/dir.php | 2 +- generated/filesystem.php | 4 ++-- generated/functionsList.php | 1 - generated/image.php | 4 ++-- generated/mbstring.php | 4 ++-- generated/misc.php | 4 ++-- generated/openssl.php | 2 +- generated/pcre.php | 2 +- generated/spl.php | 6 +++--- rector-migrate.php | 1 - 13 files changed, 17 insertions(+), 43 deletions(-) diff --git a/generated/apcu.php b/generated/apcu.php index e1fd18c3..1ba8e432 100644 --- a/generated/apcu.php +++ b/generated/apcu.php @@ -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 * */ diff --git a/generated/array.php b/generated/array.php index ee6dbf67..9e6ce7c4 100644 --- a/generated/array.php +++ b/generated/array.php @@ -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 diff --git a/generated/datetime.php b/generated/datetime.php index b1476966..f2f6ea62 100644 --- a/generated/datetime.php +++ b/generated/datetime.php @@ -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 * */ @@ -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 * diff --git a/generated/dir.php b/generated/dir.php index fe4ea5af..c9523565 100644 --- a/generated/dir.php +++ b/generated/dir.php @@ -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 diff --git a/generated/filesystem.php b/generated/filesystem.php index 4045d537..7df9b745 100644 --- a/generated/filesystem.php +++ b/generated/filesystem.php @@ -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 @@ -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 * diff --git a/generated/functionsList.php b/generated/functionsList.php index 58e78822..b1c28d6f 100644 --- a/generated/functionsList.php +++ b/generated/functionsList.php @@ -14,7 +14,6 @@ 'apcu_inc', 'apcu_sma_info', 'apc_fetch', - 'array_combine', 'array_replace', 'array_replace_recursive', 'array_walk_recursive', diff --git a/generated/image.php b/generated/image.php index 0d86a92b..061eb227 100644 --- a/generated/image.php +++ b/generated/image.php @@ -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 * @@ -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 * diff --git a/generated/mbstring.php b/generated/mbstring.php index 9fc3b140..22d794a3 100644 --- a/generated/mbstring.php +++ b/generated/mbstring.php @@ -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 @@ -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 * */ diff --git a/generated/misc.php b/generated/misc.php index 5cb147db..74a76b91 100644 --- a/generated/misc.php +++ b/generated/misc.php @@ -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). @@ -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: diff --git a/generated/openssl.php b/generated/openssl.php index 756a514b..910e7ad1 100644 --- a/generated/openssl.php +++ b/generated/openssl.php @@ -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 * */ diff --git a/generated/pcre.php b/generated/pcre.php index d9207a7f..7f247b62 100644 --- a/generated/pcre.php +++ b/generated/pcre.php @@ -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 * diff --git a/generated/spl.php b/generated/spl.php index 08c679dc..6afd603c 100644 --- a/generated/spl.php +++ b/generated/spl.php @@ -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 * */ @@ -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 * */ @@ -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 * */ diff --git a/rector-migrate.php b/rector-migrate.php index d6d92b6c..cedb3668 100644 --- a/rector-migrate.php +++ b/rector-migrate.php @@ -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',