Automattic\WooCommerce\Vendor\League\ISO3166

Guards::guardAgainstInvalidName │ public static │ WC 1.0

Assert that input is not an empty string.

Метод класса: Guards{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = Guards::guardAgainstInvalidName( $name ): void;
$name(строка) (обязательный)
.

Код Guards::guardAgainstInvalidName() WC 11.2.2

public static function guardAgainstInvalidName(string $name): void
{
    if ('' === trim($name)) {
        throw new DomainException('Expected string, got empty string');
    }
}