Fix type error in conflict_requirement

Fixes #19636.