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(); }