/** * Validates non-negative number * * @param string $path * @param array $values * * @return array */ function validate_non_negative_number($path, $values) { return array($path => test_number($path, $values, false, true, PHP_INT_MAX, __('Not a non-negative number'))); }
/** * Validates non-negative number * * @param string $path * @param array $values * @return array */ function validate_non_negative_number($path, $values) { return array($path => test_number($path, $values, false, true, PHP_INT_MAX, 'error_nan_nneg')); }