Skip to content

Commit

Permalink
Automatically regenerate the files
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Nov 28, 2024
1 parent 5dff0a7 commit 82b933f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 1 addition & 3 deletions generated/array.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
8 changes: 6 additions & 2 deletions generated/gettext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 82b933f

Please sign in to comment.