public static functionmaxLength($value, $max, $message = '') {
if (static::strlen($value) > $max) {
static::reportInvalidArgument(\sprintf($message ?: 'Expected a value to contain at most %2$s characters. Got: %s', static::valueToString($value), $max));
}
}