Automattic\WooCommerce\Vendor\League\ISO3166
Guards::guardAgainstInvalidName
Assert that input is not an empty string.
Метод класса: Guards{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = Guards::guardAgainstInvalidName( $name ): void;
- $name(строка) (обязательный)
- .
Код Guards::guardAgainstInvalidName() Guards::guardAgainstInvalidName WC 11.2.2
public static function guardAgainstInvalidName(string $name): void
{
if ('' === trim($name)) {
throw new DomainException('Expected string, got empty string');
}
}