Vendor packages updated

This commit is contained in:
2026-07-07 22:49:30 +02:00
parent 30269316b2
commit 97963b34aa
1239 changed files with 216109 additions and 81192 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace Safe;
use Safe\Exceptions\GettextException;
/**
* @param string $domain
* @param null|string $directory
* @return string
* @throws GettextException
*
*/
function bindtextdomain(string $domain, ?string $directory = null): string
{
error_clear_last();
if ($directory !== null) {
$safeResult = \bindtextdomain($domain, $directory);
} else {
$safeResult = \bindtextdomain($domain);
}
if ($safeResult === false) {
throw GettextException::createFromPhpError();
}
return $safeResult;
}