Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Caching

SimpleStringCache::assertNotEmptyKeyprivateWC 1.0

Method of the class: SimpleStringCache{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->assertNotEmptyKey( $key ): void;
$key(string) (required)
.

SimpleStringCache::assertNotEmptyKey() code WC 10.8.1

private function assertNotEmptyKey(string $key): void
{
    if ($key === '') {
        throw new \InvalidArgumentException('Please provide a non-empty key.', 1625995840);
    }
}