src/Ranges.php
public static function stringWithLengthBetween(int $minimumLength, int $maximumLength): \Closure
	{
		if ($maximumLength < 0 || $maximumLength < 1)
			throw new \InvalidArgumentException('Minimum length cannot be below 0, maximum length cannot be below 1');

		return function ($value) use ($minimumLength, $maximumLength)
		{
			return Types::string()($value) && static::intBetween($minimumLength, $maximumLength)(strlen($value));
		};
	}
public static function stringWithLengthBetween(int $minimumLength, int $maximumLength): \Closure
	{
		if ($maximumLength < 0 || $maximumLength < 1)
			throw new \InvalidArgumentException('Minimum length cannot be below 0, maximum length cannot be below 1');

		return function ($value) use ($minimumLength, $maximumLength)
		{
			return Types::string()($value) && static::intBetween($minimumLength, $maximumLength)(strlen($value));
		};
	}
@param int $minimumLength
@param int $maximumLength

@return \Closure