@psalm-pure
string|null $value:
string $pattern:
string $message:
void
InvalidArgumentException
public static function nullOrRegex($value, $pattern, $message = '') { null === $value || static::regex($value, $pattern, $message); }