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