From 82b933f87368433b1b769ab3787c1b25c6b30bd1 Mon Sep 17 00:00:00 2001 From: shish <40659+shish@users.noreply.github.com> Date: Wed, 27 Nov 2024 03:20:11 +0000 Subject: [PATCH] Automatically regenerate the files --- generated/array.php | 4 +--- generated/gettext.php | 8 ++++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/generated/array.php b/generated/array.php index 5c6ef9fb..19907746 100644 --- a/generated/array.php +++ b/generated/array.php @@ -17,16 +17,14 @@ * If this function returns FALSE, FALSE is returned from * array_all and the callback will not be called for * further elements. - * @return mixed * @throws ArrayException * */ -function array_all(array $array, callable $callback) +function array_all(array $array, callable $callback): void { error_clear_last(); $safeResult = \array_all($array, $callback); if ($safeResult === false) { throw ArrayException::createFromPhpError(); } - return $safeResult; } diff --git a/generated/gettext.php b/generated/gettext.php index 5abd6cb6..a53125b0 100644 --- a/generated/gettext.php +++ b/generated/gettext.php @@ -16,10 +16,14 @@ * @throws GettextException * */ -function bindtextdomain(string $domain, string $directory): string +function bindtextdomain(string $domain, ?string $directory = null): string { error_clear_last(); - $safeResult = \bindtextdomain($domain, $directory); + if ($directory !== null) { + $safeResult = \bindtextdomain($domain, $directory); + } else { + $safeResult = \bindtextdomain($domain); + } if ($safeResult === false) { throw GettextException::createFromPhpError(); }