Page MenuHomePhabricator

ApiBase::PARAM_RANGE_ENFORCE replacement unclear
Open, Needs TriagePublic


	 * (boolean) Inverse of IntegerDef::PARAM_IGNORE_RANGE
	 * @deprecated since 1.35
	public const PARAM_RANGE_ENFORCE = 'api-param-range-enforce';

It's unclear what this deprecated constant should be replaced with

Event Timeline

The default behaviour of IntegerDef (or every NumericDef) is now to enforce the range, so this should be removed. For every integer with a min or max value and without that option, the IGNORE_RANGE needs to be set.